diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c index 84dc4d8fceb..c5f8db90371 100755 --- a/ext/spl/php_spl.c +++ b/ext/spl/php_spl.c @@ -627,6 +627,7 @@ PHP_MINIT_FUNCTION(spl) PHP_RINIT_FUNCTION(spl) /* {{{ */ { SPL_G(autoload_extensions) = estrndup(".inc,.php", sizeof(".inc,.php")-1); + SPL_G(autoload_functions) = NULL; return SUCCESS; } /* }}} */ @@ -639,6 +640,7 @@ PHP_RSHUTDOWN_FUNCTION(spl) /* {{{ */ if (SPL_G(autoload_functions)) { zend_hash_destroy(SPL_G(autoload_functions)); FREE_HASHTABLE(SPL_G(autoload_functions)); + SPL_G(autoload_functions) = NULL; } return SUCCESS; } /* }}} */