File tree 1 file changed +0
-7
lines changed
1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -560,7 +560,6 @@ static void php_pgsql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
560
560
561
561
/* try to find if we already have this link in our persistent list */
562
562
if ((le = zend_hash_find_ptr (& EG (persistent_list ), str .s )) == NULL ) { /* we don't */
563
- newpconn :
564
563
if (PGG (max_links ) != -1 && PGG (num_links ) >= PGG (max_links )) {
565
564
php_error_docref (NULL , E_WARNING ,
566
565
"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)
589
588
PGG (num_links )++ ;
590
589
PGG (num_persistent )++ ;
591
590
} 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
- }
598
591
if (le -> type != le_plink ) {
599
592
goto err ;
600
593
}
You can’t perform that action at this time.
0 commit comments