php-src/ext/pgsql/tests
Jakub Zelenka 66bd809ac9
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 23:01:16 +09:00
..
inc ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
00version.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
01createdb.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
02connection.phpt Bump minimum libpq version to 10.0 (#14628) 2024-06-25 20:50:04 +02:00
03sync_query.phpt Bump minimum libpq version to 10.0 (#14628) 2024-06-25 20:50:04 +02:00
04async_query.phpt Deprecate calling pg_fetch_result(), pg_field_prtlen(), and pg_field_is_null() with 2 arguments 2023-12-04 22:27:59 +01:00
05large_object.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
06_bug73498.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
06copy.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
06copy_2.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
07optional.phpt Bump minimum libpq version to 10.0 (#14628) 2024-06-25 20:50:04 +02:00
08escape.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
09notice.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
10pg_convert.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
10pg_convert_9.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
10pg_convert_json_array.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
11pg_meta_data.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
12pg_insert.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
12pg_insert_9.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
13pg_select.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
13pg_select_9.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
14pg_update.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
14pg_update_9.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
15pg_delete.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
16pg_result_status.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
17result.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
18pg_escape_bytea_before.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
18pg_escape_bytea_esc.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
18pg_escape_bytea_hex.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
19pg_ping.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
20pg_get_pid.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
21pg_get_notify.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
22pg_fetch_object.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
23sync_query_params.phpt Bump minimum libpq version to 10.0 (#14628) 2024-06-25 20:50:04 +02:00
24sync_query_prepared.phpt Bump minimum libpq version to 10.0 (#14628) 2024-06-25 20:50:04 +02:00
25async_query_params.phpt Bump minimum libpq version to 10.0 (#14628) 2024-06-25 20:50:04 +02:00
26async_query_prepared.phpt Bump minimum libpq version to 10.0 (#14628) 2024-06-25 20:50:04 +02:00
27large_object_oid.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
28large_object_import_oid.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
29nb_async_connect.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
30nb_async_query_params.phpt Bump minimum libpq version to 10.0 (#14628) 2024-06-25 20:50:04 +02:00
31nb_async_query_prepared.phpt Bump minimum libpq version to 10.0 (#14628) 2024-06-25 20:50:04 +02:00
32nb_async_query.phpt Bump minimum libpq version to 10.0 (#14628) 2024-06-25 20:50:04 +02:00
80_bug14383.phpt Backport GH-14962 to stable versions 2024-11-26 21:24:48 +01:00
80_bug24499.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
80_bug27597.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
80_bug32223.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
80_bug32223b.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
80_bug36625.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
80_bug39971.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
80_bug42783.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
98old_api.phpt Replace @deprecated by #[\Deprecated] for internal functions / class constants (#14750) 2024-07-10 16:47:31 +02:00
9999dropdb.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug37100.phpt Deprecate calling pg_fetch_result(), pg_field_prtlen(), and pg_field_is_null() with 2 arguments 2023-12-04 22:27:59 +01:00
bug37100_9.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug46408.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug47199.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug60244.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug64609.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug65119.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug68638.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug71062.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug71998.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug72028.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug72195.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug72197.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug75419.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug76548.phpt Deprecate calling pg_fetch_result(), pg_field_prtlen(), and pg_field_is_null() with 2 arguments 2023-12-04 22:27:59 +01:00
bug77047.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug81720.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
changepassword.phpt Use "must not" instead of "cannot" wording 2024-08-21 21:12:17 +01:00
close_default_link.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
CONFLICTS Implement fine-grained conflict handling 2019-02-20 11:20:40 +01:00
connect_after_close.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
connection_reuse.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
deprecated_implicit_default_link.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
gh8253.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
gh10672.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
gh12763.phpt Fix test 2023-11-28 02:00:47 +03:00
gh13354.phpt GH-13355 fix new pgsql test 2024-02-08 22:44:03 +00:00
gh13519.phpt Fix GH-13519: another attempt after the faulty fix. 2024-04-27 12:15:59 +01:00
gh17158.phpt Fix GH-17158: pg_fetch_result Shows Incorrect ArgumentCountError Message when Called With 1 Argument 2024-12-14 19:48:40 +01:00
gh17165.phpt fix pgsql config inclusion 2024-12-15 16:05:10 +00:00
gh18148.phpt Fix GH-18148: pg_copy_from() wrong \n offset check. 2025-03-26 17:44:01 +00:00
ghsa-hrwm-9436-5mv3.phpt Fix GHSA-hrwm-9436-5mv3: pgsql escaping no error checks 2025-07-01 23:01:16 +09:00
no_link_open.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
pg_delete_001.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
pg_insert_001.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
pg_insert_002.phpt Use "must not" instead of "cannot" wording 2024-08-21 21:12:17 +01:00
pg_jit.phpt ext/pgsql: add pg_jit server info. 2024-06-14 16:27:00 +01:00
pg_meta_data_001.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
pg_put_copy.phpt ext/pgsql: adding pg_put_copy_data/pg_put_copy_end. 2024-05-28 18:35:40 +01:00
pg_result_memory_size.phpt ext/pgsql: add pg_result_memory_size 2024-05-13 22:58:02 +01:00
pg_select_001.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
pg_set_chunked_rows_size.phpt ext/pgsql: adding postgresql 17 new libpq wrapper call. 2024-06-15 19:56:15 +01:00
pg_socket_poll.phpt ext/pgsql: adding pg_socket_poll. 2024-05-31 20:10:49 +01:00
pg_trace.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
pg_update_001.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
php.gif
README.md Update bug tracker links 2022-05-12 14:55:11 +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.