From 83ca3c8ff9bfcc32c364ed8e9a451a0575c10e83 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Wed, 12 Oct 2011 01:03:15 +0000 Subject: [PATCH] - Fixed bug #60042 (spl_autoload_call may manipulate a dangling pointer) patch by: tom at punkave dot com --- ext/spl/php_spl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c index 8ba85cb8f7..e512cbf376 100755 --- a/ext/spl/php_spl.c +++ b/ext/spl/php_spl.c @@ -406,6 +406,7 @@ PHP_FUNCTION(spl_autoload_call) 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; -- 2.50.1