summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2011-08-31 11:11:08 +0000
committerJohannes Schlüter <johannes@php.net>2011-08-31 11:11:08 +0000
commit1cb8c01f0da3d35b45af106d7847fcd7fb1ff92f (patch)
tree8ca59bcf27afc0ee35a0863410a7e64af2c6b82c
parent3d74cffc203f44f20dd7ab0c8c31e559c5700aac (diff)
downloadphp-git-1cb8c01f0da3d35b45af106d7847fcd7fb1ff92f.tar.gz
- Fix Bug #55550 mysql.trace_mode miscounts result sets,
fixes ext/mysql/tests/mysql_deprecated_api.phpt
-rw-r--r--NEWS3
-rw-r--r--ext/mysql/php_mysql.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 44b0bb8b13..09d88dd7ff 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,9 @@ PHP NEWS
. Fixed bug #48476 (cloning extended DateTime class without calling
parent::__constr crashed PHP). (Hannes)
+- MySQL:
+ . Fixed bug #55550 (mysql.trace_mode miscounts result sets). (Johannes)
+
- Phar:
. Fixed bug#52013 (Unable to decompress files in a compressed phar). (Hannes)
. Fixed bug#53872 (internal corruption of phar). (Hannes)
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c
index 57de00f4e2..86d1d568e1 100644
--- a/ext/mysql/php_mysql.c
+++ b/ext/mysql/php_mysql.c
@@ -1588,6 +1588,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);
}
/* }}} */
@@ -1625,6 +1626,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);
}
/* }}} */
@@ -1662,6 +1664,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);
}
/* }}} */
@@ -1694,6 +1697,7 @@ PHP_FUNCTION(mysql_list_processes)
RETURN_FALSE;
}
+ MySG(result_allocated)++;
ZEND_REGISTER_RESOURCE(return_value, mysql_result, le_result);
}
/* }}} */