From: Felipe Pena Date: Wed, 12 Oct 2011 01:03:15 +0000 (+0000) Subject: - Fixed bug #60042 (spl_autoload_call may manipulate a dangling pointer) X-Git-Tag: php-5.3.9RC1~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83ca3c8ff9bfcc32c364ed8e9a451a0575c10e83;p=php - Fixed bug #60042 (spl_autoload_call may manipulate a dangling pointer) patch by: tom at punkave dot com --- 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;