Máté Kocsis
beaf1e814a
Deprecate calling pg_fetch_result(), pg_field_prtlen(), and pg_field_is_null() with 2 arguments
2023-12-04 22:27:59 +01:00
Dmitry Stogov
e2e433a514
Fix test
2023-11-28 02:00:47 +03:00
Dmitry Stogov
701f8cbef2
Fixed broken test
2023-11-28 01:21:36 +03:00
David Carlier
2ef4785dac
Merge branch 'PHP-8.3'
2023-11-27 18:20:38 +00:00
David Carlier
be2d460979
Merge branch 'PHP-8.2' into PHP-8.3
2023-11-27 18:20:27 +00:00
David Carlier
b12c85293d
Merge branch 'PHP-8.1' into PHP-8.2
2023-11-27 18:19:02 +00:00
ddv
3f57bd80f6
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
Jakub Zelenka
107ed64e2e
Merge branch 'PHP-8.3'
2023-11-20 16:24:57 +00:00
Jakub Zelenka
1e66e6ae73
Revert incomplete PG pipeline addition
...
Closes GH-12735
2023-11-20 16:22:29 +00:00
David Carlier
994d19d500
Merge branch 'PHP-8.3'
2023-11-10 16:08:08 +00:00
Dmitriy Degtyaryov
63898008c0
Fix GH-9344: pgsql pipeline mode proposal.
...
Adding pg_send_flush_request.
Fix freeze after next execute pg_send_* on PQgetResult in _php_pgsql_link_has_results.
Set nonblocking for pipelining mode.
No flush client buffer in pg_send_* for pipelining mode.
Close GH-12644
2023-11-10 16:06:04 +00:00
KentarouTakeda
c15988aab3
ext/pgsql: Refactor tests ( #12608 )
...
This makes the tests independent of each other and allows them to be run in parallel.
Co-authored-by: Gina Peter Banyard <girgias@php.net >
2023-11-06 22:36:52 +00:00
David CARLIER
045dc10b1b
ext/pgsql: cleanup the 3rd protocol is supported since circa 2010. ( #12465 )
2023-10-18 05:28:47 +01:00
Omar Emara
75da0d7c45
PGSQL: Allow unconditional selection in pg_select
...
Previously, pg_select did not allow unconditional selection, where an
empty ids array would result in a function failure.
This patch implements two changes:
- Make the ids array an optional parameter.
- Allow the ids array to be empty.
In both cases, unconditional selection happen, which is equivalent to
pg_query('SELECT * FROM <table>;').
Two test cases were added to test the aforementioned changes.
Close GH-5332
2023-10-08 18:22:50 +01:00
Máté Kocsis
7ae0273ba3
Make the $row param of pg_fetch_result(), pg_field_prtlen() and pg_field_is_null() nullable
2023-07-18 12:59:21 +02:00
Remi Collet
21aaf3321f
check PQsetErrorContextVisibility availability (libpq >= 9.6)
2023-06-21 08:47:59 +02:00
David Carlier
bc45b34b30
Merge branch 'PHP-8.1' into PHP-8.2
2023-06-18 13:45:30 +01:00
David CARLIER
f194cdf852
ext/pgsql: fix PGtrace invalid free issue.
...
disable trace when closing the connection, is a no op if there is no stream
attached to it.
Close GH-11403
2023-06-18 13:44:39 +01:00
David CARLIER
dd8514a0bd
ext/pgsql: adding pg_set_error_context_visibility.
...
another level of context for pg_last_error/pg_result_error() to include
or not the context in those. PQSHOW_CONTEXT_ERRORS being the default.
Close GH-11395
2023-06-13 18:07:39 +01:00
David CARLIER
16a63d7b07
ext/pgsql: php_pgsql_convert converts E_NOTICE to TypeError/ValueError exceptions.
...
Close GH-11238
2023-06-05 15:31:39 +01:00
David CARLIER
f18a0384c1
ext/pgsql: fix pg_trace test when trace mode is supported. ( #11191 )
2023-05-06 10:02:30 +01:00
David CARLIER
f31d253849
ext/pgsql adding PGSQL_ERRORS_SQLSTATE constant support.
...
Close GH-11181
2023-05-05 15:08:27 +01:00
David Carlier
7ec8ae12c4
ext/pgsql: pg_trace allow to refine its trace mode via 2 new constants.
...
- PGSQL_TRACE_SUPPRESS_TIMESTAMPS.
- PGSQL_TRACE_REGRESS_MODE to have a more verbose and observable
output to check possible regressions.
Close GH-11041
2023-05-05 11:05:03 +01:00
David CARLIER
6a9061e0af
Fix GH-9344: pgsql pipeline mode proposal.
...
Adding pg_enter_pipeline_mode, pg_exit_pipeline_mode,
pg_pipeline_sync and pg_pipeline_status.
Close GH-10868
2023-04-28 20:53:11 +01:00
David Carlier
b19f556349
Merge branch 'PHP-8.2'
2023-03-18 07:10:57 +00:00
David Carlier
892f833807
Merge branch 'PHP-8.1' into PHP-8.2
2023-03-18 07:10:06 +00:00
David CARLIER
5adeed3051
ext/psql: pg_meta_data, extended mode, fix typo for pseudo typtype.
...
Closes GH-10865.
2023-03-18 07:09:13 +00:00
David CARLIER
feb82d91b9
pgsql_insert fix unit tests ( #10860 )
2023-03-15 22:57:25 +00:00
David Carlier
394470c052
php_pgsql_meta_data raises a ValueError when table name is invalid.
2023-03-15 17:49:27 +00:00
George Peter Banyard
51b70e4414
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fixed bug GH-10270 Unable to return CURL_READFUNC_PAUSE in readfunc callback
Fix GH-10672 (pg_lo_open segfaults in the strict_types mode)
2023-02-24 14:33:47 +00:00
George Peter Banyard
512abc23a4
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fixed bug GH-10270 Unable to return CURL_READFUNC_PAUSE in readfunc callback
Fix GH-10672 (pg_lo_open segfaults in the strict_types mode)
2023-02-24 14:33:28 +00:00
George Peter Banyard
5f357f341d
Fix GH-10672 (pg_lo_open segfaults in the strict_types mode)
...
We need to use the proper ZPP qualifier for zend_string
Closes GH-10677
2023-02-24 14:31:23 +00:00
Máté Kocsis
7936c8085e
Fix GH-8329 Print true/false instead of bool in error and debug messages ( #8385 )
2023-01-23 10:52:14 +01:00
George Peter Banyard
eddab74021
Improve DBA test suite ( #8904 )
...
Generalises tests for all the different drivers.
Run the general test for the various drivers.
This allows support for parallel testing as the tests now do not rely on the same DB file.
2022-07-28 19:36:04 +01:00
Máté Kocsis
f17a8a5aed
Add missing EXTENSIONS section to new test
2022-06-06 12:21:25 +02:00
Máté Kocsis
7c2d1fda4a
Add missing SKIPIF section to new test
2022-06-06 12:05:49 +02:00
Stanislav Malyshev
70d03423c7
Merge branch 'PHP-8.1'
2022-06-06 01:11:49 -06:00
Stanislav Malyshev
98e1291b7e
Merge branch 'PHP-8.0' into PHP-8.1
2022-06-06 01:11:44 -06:00
Stanislav Malyshev
e864cb61a7
Merge branch 'PHP-7.4' into PHP-8.0
2022-06-06 01:11:13 -06:00
Christoph M. Becker
55f6895f4b
Fix #81720 : Uninitialized array in pg_query_params() leading to RCE
...
We must not free parameters which we haven't initialized yet.
We also fix the not directly related issue, that we checked for the
wrong value being `NULL`, potentially causing a segfault.
2022-06-06 00:34:23 -06:00
Christoph M. Becker
81d1a1b47b
Update bug tracker links
...
The new php-src bugtracker is on Github.
Closes GH-8277.
2022-05-12 14:55:11 +02:00
Ilija Tovilo
9a90bd7054
Deprecate ${} string interpolation
...
https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation
2022-05-05 10:14:56 +02:00
Ilija Tovilo
4dec645029
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Verify generated files are up to date in CI
2022-04-21 23:27:46 +02:00
Ilija Tovilo
cf70047351
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Verify generated files are up to date in CI
2022-04-21 23:27:29 +02:00
Michael Voříšek
36de002cc6
Verify generated files are up to date in CI
...
Closes GH-8295
2022-04-21 23:25:47 +02:00
Christoph M. Becker
c9c5ee3f48
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix GH-8253: pg_insert() fails for references
2022-03-29 10:54:32 +02:00
Christoph M. Becker
7e8dcda42c
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix GH-8253: pg_insert() fails for references
2022-03-29 10:53:56 +02:00
Christoph M. Becker
0e6d6f83cc
Fix GH-8253: pg_insert() fails for references
...
We need to deref the values.
Closes GH-8262.
2022-03-29 10:51:19 +02:00
Matteo Beccati
a476cc109d
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix #81509 pg_end_copy still expects a resource
Add test for pg_put_line() and pg_end_copy()
2021-10-05 18:14:06 +02:00
Matteo Beccati
202a099aee
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Add test for pg_put_line() and pg_end_copy()
2021-10-05 18:13:20 +02:00