From: Marcus Boerger Date: Mon, 26 Sep 2005 17:54:57 +0000 (+0000) Subject: - Reset global pointer to NULL after mem free (required for apache 1.3) X-Git-Tag: RELEASE_0_9_0~103 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=179ab26968f49b06b536ff2d4144a5683a58e546;p=php - Reset global pointer to NULL after mem free (required for apache 1.3) --- diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c index b64b17e286..3e5561b1a4 100755 --- a/ext/spl/php_spl.c +++ b/ext/spl/php_spl.c @@ -631,6 +631,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; } /* }}} */ @@ -643,6 +644,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; } /* }}} */