From 179ab26968f49b06b536ff2d4144a5683a58e546 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Mon, 26 Sep 2005 17:54:57 +0000 Subject: [PATCH] - Reset global pointer to NULL after mem free (required for apache 1.3) --- ext/spl/php_spl.c | 2 ++ 1 file changed, 2 insertions(+) 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; } /* }}} */ -- 2.40.0