summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2011-10-12 01:03:15 +0000
committerFelipe Pena <felipe@php.net>2011-10-12 01:03:15 +0000
commit71eaaf65679fc949b798dec1007826162ecdc4d4 (patch)
treecf7a071b7b43ab869f099b52ee63cf113fed17e0
parentb5f57703991421cdf01e5933f02751a42ee80ff9 (diff)
downloadphp-git-71eaaf65679fc949b798dec1007826162ecdc4d4.tar.gz
- Fixed bug #60042 (spl_autoload_call may manipulate a dangling pointer)
patch by: tom at punkave dot com
-rwxr-xr-xext/spl/php_spl.c1
1 files changed, 1 insertions, 0 deletions
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;