]> granicus.if.org Git - php/commitdiff
I see no reason not to allow people to set the timeout on a mysql_connect
authorRasmus Lerdorf <rasmus@php.net>
Wed, 28 May 2003 16:18:14 +0000 (16:18 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Wed, 28 May 2003 16:18:14 +0000 (16:18 +0000)
from inside a script with ini_set().  We allow user-settable timeouts on
other socket connections so having this as a system-settable only
directive doesn't make much sense to me.

ext/mysql/php_mysql.c

index 2d766c4dcc2f41346d5a4fae3f82c4a710cee26a..4ff77fc29419e153712000c841dff73a5c3e3ec6 100644 (file)
@@ -315,7 +315,7 @@ PHP_INI_BEGIN()
        STD_PHP_INI_ENTRY("mysql.default_password",             NULL,   PHP_INI_ALL,            OnUpdateString,         default_password,       zend_mysql_globals,             mysql_globals)
        PHP_INI_ENTRY("mysql.default_port",                             NULL,   PHP_INI_ALL,            OnMySQLPort)
        STD_PHP_INI_ENTRY("mysql.default_socket",               NULL,   PHP_INI_ALL,            OnUpdateStringUnempty,  default_socket, zend_mysql_globals,             mysql_globals)
-       STD_PHP_INI_ENTRY("mysql.connect_timeout",              "-1",   PHP_INI_SYSTEM,         OnUpdateInt,            connect_timeout,        zend_mysql_globals,             mysql_globals)
+       STD_PHP_INI_ENTRY("mysql.connect_timeout",              "-1",   PHP_INI_ALL,            OnUpdateInt,            connect_timeout,        zend_mysql_globals,             mysql_globals)
        STD_PHP_INI_BOOLEAN("mysql.trace_mode",                 "0",    PHP_INI_ALL,            OnUpdateInt,            trace_mode,             zend_mysql_globals,             mysql_globals)
 PHP_INI_END()
 /* }}} */