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

Patch clear_retval_between_autoloaders for SPL related Bug #60042

Patch version 2011-10-11 17:03 UTC

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

Developer: tom@punkave.com

--- ext/spl/php_spl_old.c	2011-10-11 12:57:30.000000000 -0400
+++ ext/spl/php_spl.c	2011-10-11 12:57:39.000000000 -0400
@@ -406,6 +406,7 @@
 			zend_exception_save(TSRMLS_C);
 			if (retval) {
 				zval_ptr_dtor(&retval);
+				retval = NULL;
 			}
 			if (zend_hash_exists(EG(class_table), lc_name, class_name_len + 1)) {
 				break;
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 05:01:29 2024 UTC