Skip to content

Commit 0306983

Browse files
committed
Merge branch 'PHP-8.2' into PHP-8.3
2 parents 0285395 + 330b26e commit 0306983

File tree

3 files changed

+0
-39
lines changed

3 files changed

+0
-39
lines changed

NEWS

-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ PHP NEWS
3636
- PGSQL:
3737
. Fixed bug GH-13354 (pg_execute/pg_send_query_params/pg_send_execute
3838
with null value passed by reference). (George Barbarosie)
39-
. Fixed bug GH-13519 (PGSQL_CONNECT_FORCE_RENEW not working with persistent
40-
connections. (David Carlier)
4139

4240
- SPL:
4341
. Fixed bug GH-13531 (Unable to resize SplfixedArray after being unserialized

ext/pgsql/pgsql.c

-7
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,6 @@ static void php_pgsql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
566566

567567
/* try to find if we already have this link in our persistent list */
568568
if ((le = zend_hash_find_ptr(&EG(persistent_list), str.s)) == NULL) { /* we don't */
569-
newpconn:
570569
if (PGG(max_links) != -1 && PGG(num_links) >= PGG(max_links)) {
571570
php_error_docref(NULL, E_WARNING,
572571
"Cannot create new link. Too many open links (" ZEND_LONG_FMT ")", PGG(num_links));
@@ -595,12 +594,6 @@ static void php_pgsql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
595594
PGG(num_links)++;
596595
PGG(num_persistent)++;
597596
} else { /* we do */
598-
if ((connect_type & PGSQL_CONNECT_FORCE_NEW)) {
599-
if (zend_hash_del(&EG(persistent_list), str.s) != SUCCESS) {
600-
goto err;
601-
}
602-
goto newpconn;
603-
}
604597
if (le->type != le_plink) {
605598
goto err;
606599
}

ext/pgsql/tests/gh13519.phpt

-30
This file was deleted.

0 commit comments

Comments
 (0)