com php-src: Fixed reference counting: ext/mysql/php_mysql. c

From: Date: Wed, 09 Apr 2014 13:02:13 +0000
Subject: com php-src: Fixed reference counting: ext/mysql/php_mysql. c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77461@lists.php.net to get a copy of this message
Commit: b7e6c8d0f8afb57e9f2012379c0d10c8aaf62804 Author: Dmitry Stogov <dmitry@zend.com> Wed, 9 Apr 2014 17:02:13 +0400 Parents: 79b27dc096db199dc29f88c60b033165a52ec809 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b7e6c8d0f8afb57e9f2012379c0d10c8aaf62804 Log: Fixed reference counting Changed paths: M ext/mysql/php_mysql.c Diff: diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 95d290e..2fdb517 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -1547,6 +1547,7 @@ static void php_mysql_do_query_general(php_mysql_conn *mysql, char *query, int q ZEND_REGISTER_RESOURCE(return_value, mysql_result, le_result); if (use_store == MYSQL_USE_RESULT) { mysql->active_result_res = Z_RES_P(return_value); + Z_ADDREF_P(return_value); } } /* }}} */

« previous php.cvs (#77461) next »