[php-src] master: pg_connect() may return rcn

From: Date: Wed, 28 Apr 2021 08:38:09 +0000
Subject: [php-src] master: pg_connect() may return rcn
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-115912@lists.php.net to get a copy of this message
Author: Nikita Popov (nikic) Date: 2021-04-28T10:36:48+02:00 Commit: https://github.com/php/php-src/commit/98a071e880fa544a8a837117cb0a4e9ade058acc Raw diff: https://github.com/php/php-src/commit/98a071e880fa544a8a837117cb0a4e9ade058acc.diff pg_connect() may return rcn Without CONNECT_FORCE_NEW, pg_connect() may resuse an existing connection and refcount may be larger than one. Changed paths: M ext/opcache/Optimizer/zend_func_info.c Diff: diff --git a/ext/opcache/Optimizer/zend_func_info.c b/ext/opcache/Optimizer/zend_func_info.c index bfbc78fdb29a3..6e3c0c116985e 100644 --- a/ext/opcache/Optimizer/zend_func_info.c +++ b/ext/opcache/Optimizer/zend_func_info.c @@ -686,7 +686,7 @@ static const func_info_t func_infos[] = { F1("session_encode", MAY_BE_FALSE | MAY_BE_STRING), /* ext/pgsql */ - F1("pg_connect", MAY_BE_FALSE | MAY_BE_RESOURCE), + FN("pg_connect", MAY_BE_FALSE | MAY_BE_RESOURCE), FN("pg_pconnect", MAY_BE_FALSE | MAY_BE_RESOURCE), F1("pg_dbname", MAY_BE_STRING), F1("pg_last_error", MAY_BE_STRING),

« previous php.cvs (#115912) next »