mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +08:00
- MFH: Reset global pointer to NULL after mem free (required for apache 1.3)
This commit is contained in:
parent
c508b5e66a
commit
15c9f414a6
@ -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;
|
||||
} /* }}} */
|
||||
|
Loading…
Reference in New Issue
Block a user