diff options
| author | Frank M. Kromann <fmk@php.net> | 2005-11-14 23:14:54 +0000 |
|---|---|---|
| committer | Frank M. Kromann <fmk@php.net> | 2005-11-14 23:14:54 +0000 |
| commit | 0eaec9871c8b4d3c3e79d63c5fcf09ae0e926b50 (patch) | |
| tree | 2a7b26eab2a527cd193da981b1ccd790a48f4cd3 /ext/mssql/php_mssql.c | |
| parent | e658842761f3d2443ca547379e054c95ca308378 (diff) | |
| download | php-git-0eaec9871c8b4d3c3e79d63c5fcf09ae0e926b50.tar.gz | |
MFB: Change max_procs from 25 to library default. This will make FreeTDS connections work a bit better
Diffstat (limited to 'ext/mssql/php_mssql.c')
| -rw-r--r-- | ext/mssql/php_mssql.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c index 6333fcab18..52acd8a4f0 100644 --- a/ext/mssql/php_mssql.c +++ b/ext/mssql/php_mssql.c @@ -140,7 +140,7 @@ PHP_INI_BEGIN() STD_PHP_INI_ENTRY_EX("mssql.batchsize", "0", PHP_INI_ALL, OnUpdateLong, 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, OnUpdateLong, max_procs, zend_mssql_globals, mssql_globals, display_link_numbers) + STD_PHP_INI_ENTRY_EX("mssql.max_procs", "-1", PHP_INI_ALL, OnUpdateLong, max_procs, zend_mssql_globals, mssql_globals, display_link_numbers) PHP_INI_END() /* error handler */ @@ -341,7 +341,9 @@ 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((TDS_SHORT)MS_SQL_G(max_procs)); + if (MS_SQL_G(max_procs) != -1) { + dbsetmaxprocs((TDS_SHORT)MS_SQL_G(max_procs)); + } return SUCCESS; } |
