diff options
| author | Frank M. Kromann <fmk@php.net> | 2005-11-15 17:33:07 +0000 |
|---|---|---|
| committer | Frank M. Kromann <fmk@php.net> | 2005-11-15 17:33:07 +0000 |
| commit | 4b6be920101b00e9c50d800deaa793598fc38d15 (patch) | |
| tree | 845fe851c4cf91a36ae40259500ff8c021d45807 /ext/mssql/php_mssql.c | |
| parent | c0d670bf38001800ea32bef6122c55aadad7e964 (diff) | |
| download | php-git-4b6be920101b00e9c50d800deaa793598fc38d15.tar.gz | |
MFH: Change max_procs to follow library standard.
Diffstat (limited to 'ext/mssql/php_mssql.c')
| -rw-r--r-- | ext/mssql/php_mssql.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c index b11a568bac..56bdc3ddc6 100644 --- a/ext/mssql/php_mssql.c +++ b/ext/mssql/php_mssql.c @@ -138,7 +138,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) + STD_PHP_INI_ENTRY_EX("mssql.max_procs", "-1", PHP_INI_ALL, OnUpdateInt, max_procs, zend_mssql_globals, mssql_globals, display_link_numbers) PHP_INI_END() /* error handler */ @@ -337,7 +337,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; } @@ -862,6 +864,7 @@ static void php_mssql_get_column_content_with_type(mssql_link *mssql_ptr,int off ZVAL_STRINGL(result, data, 16, 1); } break; +#endif case SQLVARBINARY: case SQLBINARY: case SQLIMAGE: { |
