From: Marcus Boerger Date: Thu, 31 Mar 2005 17:17:38 +0000 (+0000) Subject: - Bugfix #32521 (apache2handler accidental crashes caused by SPL) X-Git-Tag: php-5.0.1b1~649 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3eb4162122efdfbf952ec27573969995428b2025;p=php - Bugfix #32521 (apache2handler accidental crashes caused by SPL) --- diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c index bd886941a0..cbd0debbc8 100755 --- a/ext/spl/php_spl.c +++ b/ext/spl/php_spl.c @@ -54,7 +54,7 @@ function_entry spl_functions_none[] = { */ static void spl_init_globals(zend_spl_globals *spl_globals) { - spl_globals->autoload_extensions = ".inc,.inc.php"; + spl_globals->autoload_extensions = NULL; spl_globals->autoload_functions = NULL; } /* }}} */ @@ -507,7 +507,7 @@ PHP_MINIT_FUNCTION(spl) PHP_RINIT_FUNCTION(spl) /* {{{ */ { - SPL_G(autoload_extensions) = estrdup(SPL_G(autoload_extensions)); + SPL_G(autoload_extensions) = estrdup(".inc,.inc.php"); return SUCCESS; } /* }}} */ @@ -515,6 +515,7 @@ PHP_RSHUTDOWN_FUNCTION(spl) /* {{{ */ { if (SPL_G(autoload_extensions)) { efree(SPL_G(autoload_extensions)); + SPL_G(autoload_extensions) = NULL; } if (SPL_G(autoload_functions)) { zend_hash_destroy(SPL_G(autoload_functions));