php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch mysqli-clear-result-cleanup for MySQLi related Bug #63486

Patch version 2012-11-11 12:53 UTC

Return to Bug #63486 | Download this patch
Patch Revisions:

Developer: derick@php.net

diff --git a/ext/mysqli/php_mysqli_structs.h b/ext/mysqli/php_mysqli_structs.h
index ed468e2..24a9c1b 100644
--- a/ext/mysqli/php_mysqli_structs.h
+++ b/ext/mysqli/php_mysqli_structs.h
@@ -321,6 +321,7 @@ extern PHPAPI zend_class_entry *spl_ce_RuntimeException;
 	mysqli_object *intern = (mysqli_object *)zend_object_store_get_object(*(__id) TSRMLS_CC);\
 	efree(intern->ptr); \
 	intern->ptr = NULL; \
+	ZVAL_NULL(*__id); \
 }
 
 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 00:01:28 2024 UTC