diff options
| author | Frank M. Kromann <fmk@php.net> | 2005-11-14 23:14:25 +0000 | 
|---|---|---|
| committer | Frank M. Kromann <fmk@php.net> | 2005-11-14 23:14:25 +0000 | 
| commit | fe306ed1a6e5cf7f4c330c4f2353946f7a361204 (patch) | |
| tree | c951f1adf26165b7b3eee76a690276af965ea322 /ext/mssql/php_mssql.c | |
| parent | 241aa9a59de7f582ef96c01c8be513ff7f534961 (diff) | |
| download | php-git-fe306ed1a6e5cf7f4c330c4f2353946f7a361204.tar.gz | |
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 ad7e01fa5f..b70ad402ac 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;  } | 
