felipe Sat, 11 Jun 2011 01:15:14 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=312044
Log: - Possible fix for bug #55022 (memory_limit exhausted when set charset in sybase_connect) Bug: http://bugs.php.net/55022 (Open) memory_limit exhausted when set charset in sybase_connect Changed paths: U php/php-src/branches/PHP_5_3/ext/sybase_ct/php_sybase_ct.c U php/php-src/branches/PHP_5_4/ext/sybase_ct/php_sybase_ct.c U php/php-src/trunk/ext/sybase_ct/php_sybase_ct.c Modified: php/php-src/branches/PHP_5_3/ext/sybase_ct/php_sybase_ct.c =================================================================== --- php/php-src/branches/PHP_5_3/ext/sybase_ct/php_sybase_ct.c 2011-06-11 00:34:53 UTC (rev 312043) +++ php/php-src/branches/PHP_5_3/ext/sybase_ct/php_sybase_ct.c 2011-06-11 01:15:14 UTC (rev 312044) @@ -728,7 +728,7 @@ static void php_sybase_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) { - char *user, *passwd, *host, *charset, *appname; + char *user = NULL, *passwd = NULL, *host = NULL, *charset = NULL, *appname = NULL; char *hashed_details; int hashed_details_length, len; zend_bool new = 0; Modified: php/php-src/branches/PHP_5_4/ext/sybase_ct/php_sybase_ct.c =================================================================== --- php/php-src/branches/PHP_5_4/ext/sybase_ct/php_sybase_ct.c 2011-06-11 00:34:53 UTC (rev 312043) +++ php/php-src/branches/PHP_5_4/ext/sybase_ct/php_sybase_ct.c 2011-06-11 01:15:14 UTC (rev 312044) @@ -728,7 +728,7 @@ static void php_sybase_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) { - char *user, *passwd, *host, *charset, *appname; + char *user = NULL, *passwd = NULL, *host = NULL, *charset = NULL, *appname = NULL; char *hashed_details; int hashed_details_length, len; zend_bool new = 0; Modified: php/php-src/trunk/ext/sybase_ct/php_sybase_ct.c =================================================================== --- php/php-src/trunk/ext/sybase_ct/php_sybase_ct.c 2011-06-11 00:34:53 UTC (rev 312043) +++ php/php-src/trunk/ext/sybase_ct/php_sybase_ct.c 2011-06-11 01:15:14 UTC (rev 312044) @@ -728,7 +728,7 @@ static void php_sybase_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) { - char *user, *passwd, *host, *charset, *appname; + char *user = NULL, *passwd = NULL, *host = NULL, *charset = NULL, *appname = NULL; char *hashed_details; int hashed_details_length, len; zend_bool new = 0;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php