]> granicus.if.org Git - php/commitdiff
- Fixed bug #60042 (spl_autoload_call may manipulate a dangling pointer)
authorFelipe Pena <felipe@php.net>
Wed, 12 Oct 2011 01:03:15 +0000 (01:03 +0000)
committerFelipe Pena <felipe@php.net>
Wed, 12 Oct 2011 01:03:15 +0000 (01:03 +0000)
  patch by: tom at punkave dot com

ext/spl/php_spl.c

index 96615b6136ccb28872765c0cc82070a0184a97a6..e875570f59cc01f143a9c46161f3b81ec323dda4 100755 (executable)
@@ -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;