File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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)
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 }
You can’t perform that action at this time.
0 commit comments