summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2005-09-26 17:56:26 +0000
committerMarcus Boerger <helly@php.net>2005-09-26 17:56:26 +0000
commit15c9f414a6d3ffb65c93f0377d2ecaf6a2dac7d0 (patch)
treef072237c8a856baa14ca8223e0906b8ee2a529c6
parentc508b5e66a5308ff36d0c4a1fd6d284db10b3870 (diff)
downloadphp-git-15c9f414a6d3ffb65c93f0377d2ecaf6a2dac7d0.tar.gz
- MFH: Reset global pointer to NULL after mem free (required for apache 1.3)
-rwxr-xr-xext/spl/php_spl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c
index 84dc4d8fce..c5f8db9037 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;
} /* }}} */