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.4.0beta2~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=71eaaf65679fc949b798dec1007826162ecdc4d4;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 96615b6136..e875570f59 100755 --- a/ext/spl/php_spl.c +++ b/ext/spl/php_spl.c @@ -453,6 +453,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;