mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Merge branch 'PHP-8.3'
This commit is contained in:
commit
70091492d5
@ -2219,7 +2219,7 @@ void odbc_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
|
||||
}
|
||||
}
|
||||
|
||||
if (ODBCG(allow_persistent) <= 0) {
|
||||
if (!ODBCG(allow_persistent)) {
|
||||
persistent = 0;
|
||||
}
|
||||
|
||||
|
@ -406,7 +406,7 @@ PHP_INI_BEGIN()
|
||||
STD_PHP_INI_BOOLEAN( "pgsql.allow_persistent", "1", PHP_INI_SYSTEM, OnUpdateBool, allow_persistent, zend_pgsql_globals, pgsql_globals)
|
||||
STD_PHP_INI_ENTRY_EX("pgsql.max_persistent", "-1", PHP_INI_SYSTEM, OnUpdateLong, max_persistent, zend_pgsql_globals, pgsql_globals, display_link_numbers)
|
||||
STD_PHP_INI_ENTRY_EX("pgsql.max_links", "-1", PHP_INI_SYSTEM, OnUpdateLong, max_links, zend_pgsql_globals, pgsql_globals, display_link_numbers)
|
||||
STD_PHP_INI_BOOLEAN( "pgsql.auto_reset_persistent", "0", PHP_INI_SYSTEM, OnUpdateBool, auto_reset_persistent, zend_pgsql_globals, pgsql_globals)
|
||||
STD_PHP_INI_BOOLEAN( "pgsql.auto_reset_persistent", "0", PHP_INI_SYSTEM, OnUpdateLong, auto_reset_persistent, zend_pgsql_globals, pgsql_globals)
|
||||
STD_PHP_INI_BOOLEAN( "pgsql.ignore_notice", "0", PHP_INI_ALL, OnUpdateBool, ignore_notices, zend_pgsql_globals, pgsql_globals)
|
||||
STD_PHP_INI_BOOLEAN( "pgsql.log_notice", "0", PHP_INI_ALL, OnUpdateBool, log_notices, zend_pgsql_globals, pgsql_globals)
|
||||
PHP_INI_END()
|
||||
|
@ -184,9 +184,10 @@ static const php_stream_ops php_stream_pgsql_fd_ops = {
|
||||
ZEND_BEGIN_MODULE_GLOBALS(pgsql)
|
||||
zend_long num_links,num_persistent;
|
||||
zend_long max_links,max_persistent;
|
||||
zend_long allow_persistent;
|
||||
bool allow_persistent;
|
||||
int ignore_notices;
|
||||
zend_long auto_reset_persistent;
|
||||
int ignore_notices,log_notices;
|
||||
int log_notices;
|
||||
zend_object *default_link; /* default link when connection is omitted */
|
||||
HashTable field_oids;
|
||||
HashTable table_oids;
|
||||
|
Loading…
Reference in New Issue
Block a user