Skip to content

Commit 81dc935

Browse files
committed
Merge branch 'PHP-8.3'
2 parents 1d20fc5 + 0306983 commit 81dc935

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

ext/pgsql/pgsql.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,6 @@ static void php_pgsql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
560560

561561
/* try to find if we already have this link in our persistent list */
562562
if ((le = zend_hash_find_ptr(&EG(persistent_list), str.s)) == NULL) { /* we don't */
563-
newpconn:
564563
if (PGG(max_links) != -1 && PGG(num_links) >= PGG(max_links)) {
565564
php_error_docref(NULL, E_WARNING,
566565
"Cannot create new link. Too many open links (" ZEND_LONG_FMT ")", PGG(num_links));
@@ -589,12 +588,6 @@ static void php_pgsql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
589588
PGG(num_links)++;
590589
PGG(num_persistent)++;
591590
} else { /* we do */
592-
if ((connect_type & PGSQL_CONNECT_FORCE_NEW)) {
593-
if (zend_hash_del(&EG(persistent_list), str.s) != SUCCESS) {
594-
goto err;
595-
}
596-
goto newpconn;
597-
}
598591
if (le->type != le_plink) {
599592
goto err;
600593
}

0 commit comments

Comments
 (0)