php-src/ext/pgsql/tests
Jakub Zelenka a2cdff5583
Fix GHSA-hrwm-9436-5mv3: pgsql escaping no error checks
This adds error checks for escape function is pgsql and pdo_pgsql
extensions. It prevents possibility of storing not properly escaped
data which could potentially lead to some security issues.
2025-07-01 19:46:48 +03:00
..
00version.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
01createdb.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
02connection.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
03sync_query.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
04async_query.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
05large_object.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
06_bug73498.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
06copy.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
06copy_2.phpt Merge branch 'PHP-8.0' into PHP-8.1 2021-10-05 18:13:20 +02:00
07optional.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
08escape.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
09notice.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
10pg_convert.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
10pg_convert_9.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
10pg_convert_json_array.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
11pg_meta_data.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
12pg_insert.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
12pg_insert_9.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
13pg_select.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
13pg_select_9.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
14pg_update.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
14pg_update_9.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
15pg_delete.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
16pg_result_status.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
17result.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
18pg_escape_bytea_before.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
18pg_escape_bytea_esc.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
18pg_escape_bytea_hex.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
19pg_ping.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
20pg_get_pid.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
21pg_get_notify.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
22pg_fetch_object.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
23sync_query_params.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
24sync_query_prepared.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
25async_query_params.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
26async_query_prepared.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
27large_object_oid.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
28large_object_import_oid.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
29nb_async_connect.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
30nb_async_query_params.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
31nb_async_query_prepared.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
32nb_async_query.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
80_bug14383.phpt Backport GH-14962 to stable versions 2024-11-26 21:24:48 +01:00
80_bug24499.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
80_bug27597.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
80_bug32223.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
80_bug32223b.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
80_bug36625.phpt Fix some more CLEAN sections 2021-09-03 11:18:19 +02:00
80_bug39971.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
80_bug42783.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
98old_api.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
9999dropdb.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
bug37100.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
bug37100_9.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
bug46408.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
bug47199.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
bug60244.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
bug64609.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
bug65119.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
bug68638.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
bug71062.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
bug71998.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
bug72028.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
bug72195.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
bug72197.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
bug75419.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
bug76548.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
bug77047.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
bug81720.phpt Add missing EXTENSIONS section to new test 2022-06-06 12:21:25 +02:00
close_default_link.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
config.inc Deprecate ${} string interpolation 2022-05-05 10:14:56 +02:00
CONFLICTS Implement fine-grained conflict handling 2019-02-20 11:20:40 +01:00
connect_after_close.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
connection_reuse.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
deprecated_implicit_default_link.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
gh8253.phpt Merge branch 'PHP-8.0' into PHP-8.1 2022-03-29 10:53:56 +02:00
gh10672.phpt Fix GH-10672 (pg_lo_open segfaults in the strict_types mode) 2023-02-24 14:31:23 +00:00
gh12763.phpt Fix phpGH-12763: PGSQL pg_untrace(): Argument #1 ($connection) must be of type resource or null, PgSql\Connection given. 2023-11-27 18:18:46 +00:00
gh13354.phpt Fix GH-13354: ext/pgsql: pg_execute, pg_send_query_params and_send_execute null value by reference. 2024-02-08 22:42:04 +00:00
ghsa-hrwm-9436-5mv3.phpt Fix GHSA-hrwm-9436-5mv3: pgsql escaping no error checks 2025-07-01 19:46:48 +03:00
lcmess.inc Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
no_link_open.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
nonblocking.inc Sync leading and final newlines in source code files 2018-10-14 12:56:38 +02:00
pg_delete_001.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
pg_insert_001.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
pg_insert_002.phpt Fix EXTENSIONS section for pgsql 2021-06-14 14:40:38 +02:00
pg_meta_data_001.phpt ext/psql: pg_meta_data, extended mode, fix typo for pseudo typtype. 2023-03-18 07:09:13 +00:00
pg_select_001.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
pg_trace.phpt ext/pgsql: fix PGtrace invalid free issue. 2023-06-18 13:44:39 +01:00
pg_update_001.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
php.gif
README.md Update bug tracker links 2022-05-12 14:55:11 +02:00
skipif.inc Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00

The pgsql extension tests

Test scripts assumes:

  • PostgreSQL server is installed locally
  • There is a PostgreSQL account for the users running the test scripts
  • There is database named test

For instance, if your login name is testuser, you should have PostgreSQL user account named testuser and grant that user access to the database test.

If you have account and database, type createdb test from command prompt to create the database to execute the test scripts. By executing the above command as the same user running the tests you ensure that the user is granted access to the database.

If you find problems in PostgreSQL extension, please report a bug.