Skip to content

Commit 98a071e

Browse files
committed
pg_connect() may return rcn
Without CONNECT_FORCE_NEW, pg_connect() may resuse an existing connection and refcount may be larger than one.
1 parent 9ce5776 commit 98a071e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/Optimizer/zend_func_info.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ static const func_info_t func_infos[] = {
686686
F1("session_encode", MAY_BE_FALSE | MAY_BE_STRING),
687687

688688
/* ext/pgsql */
689-
F1("pg_connect", MAY_BE_FALSE | MAY_BE_RESOURCE),
689+
FN("pg_connect", MAY_BE_FALSE | MAY_BE_RESOURCE),
690690
FN("pg_pconnect", MAY_BE_FALSE | MAY_BE_RESOURCE),
691691
F1("pg_dbname", MAY_BE_STRING),
692692
F1("pg_last_error", MAY_BE_STRING),

0 commit comments

Comments
 (0)