- 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 8ba85cb8f7d2cb5aeac37b34079ffe561b492e0c..e512cbf37664965e3a9d46280f003cfee5e35938 100755 (executable)
@@ -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;