diff options
author | Johannes Schlüter <johannes@php.net> | 2011-08-31 11:11:08 +0000 |
---|---|---|
committer | Johannes Schlüter <johannes@php.net> | 2011-08-31 11:11:08 +0000 |
commit | 0d0e6cdb171c266032997ee2b45c2e1204e36dd4 (patch) | |
tree | 4d37fa2bb184cba12031b4104b1f083f9a21feb8 /ext/mysql/php_mysql.c | |
parent | 9250c721c92c463603149041d11b1b48b83af3db (diff) | |
download | php-git-0d0e6cdb171c266032997ee2b45c2e1204e36dd4.tar.gz |
- Fix Bug #55550 mysql.trace_mode miscounts result sets,
fixes ext/mysql/tests/mysql_deprecated_api.phpt
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r-- | ext/mysql/php_mysql.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 8a0d5434cf..3f9a7d653a 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -1590,6 +1590,7 @@ PHP_FUNCTION(mysql_list_dbs) php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to save MySQL query result"); RETURN_FALSE; } + MySG(result_allocated)++; ZEND_REGISTER_RESOURCE(return_value, mysql_result, le_result); } /* }}} */ @@ -1627,6 +1628,7 @@ PHP_FUNCTION(mysql_list_tables) php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to save MySQL query result"); RETURN_FALSE; } + MySG(result_allocated)++; ZEND_REGISTER_RESOURCE(return_value, mysql_result, le_result); } /* }}} */ @@ -1664,6 +1666,7 @@ PHP_FUNCTION(mysql_list_fields) php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to save MySQL query result"); RETURN_FALSE; } + MySG(result_allocated)++; ZEND_REGISTER_RESOURCE(return_value, mysql_result, le_result); } /* }}} */ @@ -1696,6 +1699,7 @@ PHP_FUNCTION(mysql_list_processes) RETURN_FALSE; } + MySG(result_allocated)++; ZEND_REGISTER_RESOURCE(return_value, mysql_result, le_result); } /* }}} */ |