Commit: 86db5fb4c2b7199dc862dfce99c345c49305ba8a Author: Anatol Belski <a...@php.net> Wed, 15 May 2013 11:12:17 +0200 Parents: ba1af298052cbef7329e330f2d3f9749b9be65bb Branches: PHP-5.3 PHP-5.4 PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=86db5fb4c2b7199dc862dfce99c345c49305ba8a Log: Fix unitialized vars when sql.safe_mode=1 which can break the subsequent mysqlnd_connect() call Changed paths: M ext/mysql/php_mysql.c Diff: diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 51a060c..c85e523 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -690,7 +690,7 @@ PHP_MINFO_FUNCTION(mysql) static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) { char *user=NULL, *passwd=NULL, *host_and_port=NULL, *socket=NULL, *tmp=NULL, *host=NULL; - int user_len, passwd_len, host_len; + int user_len = 0, passwd_len = 0, host_len = 0; char *hashed_details=NULL; int hashed_details_length, port = MYSQL_PORT; long client_flags = 0; -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php