diff options
author | Frank M. Kromann <fmk@php.net> | 2002-06-10 19:31:29 +0000 |
---|---|---|
committer | Frank M. Kromann <fmk@php.net> | 2002-06-10 19:31:29 +0000 |
commit | 509c606dbcc8bf6c0114de0116ffa03d640ebfb2 (patch) | |
tree | fe282a86702530e594d234393be44b5c60430cf9 /ext/mssql/php_mssql.c | |
parent | fd0d39da8f46328ad0e889fd5796e9805d45f00c (diff) | |
download | php-git-509c606dbcc8bf6c0114de0116ffa03d640ebfb2.tar.gz |
Adding ini setting for max_procs
Diffstat (limited to 'ext/mssql/php_mssql.c')
-rw-r--r-- | ext/mssql/php_mssql.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c index 0b0313b11d..ca219d0511 100644 --- a/ext/mssql/php_mssql.c +++ b/ext/mssql/php_mssql.c @@ -137,6 +137,7 @@ PHP_INI_BEGIN() STD_PHP_INI_ENTRY_EX("mssql.batchsize", "0", PHP_INI_ALL, OnUpdateInt, batchsize, zend_mssql_globals, mssql_globals, display_link_numbers) STD_PHP_INI_BOOLEAN("mssql.datetimeconvert", "1", PHP_INI_ALL, OnUpdateBool, datetimeconvert, zend_mssql_globals, mssql_globals) STD_PHP_INI_BOOLEAN("mssql.secure_connection", "0", PHP_INI_SYSTEM, OnUpdateBool, secure_connection, zend_mssql_globals, mssql_globals) + STD_PHP_INI_ENTRY_EX("mssql.max_procs", "25", PHP_INI_ALL, OnUpdateInt, max_procs, zend_mssql_globals, mssql_globals, display_link_numbers) PHP_INI_END() /* error handler */ @@ -330,6 +331,7 @@ PHP_RINIT_FUNCTION(mssql) dbsetlogintime(MS_SQL_G(connect_timeout)); if (MS_SQL_G(timeout) < 0) MS_SQL_G(timeout) = 60; dbsettime(MS_SQL_G(timeout)); + dbsetmaxprocs((SHORT)MS_SQL_G(max_procs)); return SUCCESS; } |