mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
reworked ini dtor
This commit is contained in:
parent
eb629b70da
commit
9e4310eeeb
3 changed files with 15 additions and 4 deletions
|
@ -487,7 +487,11 @@ static void executor_globals_ctor(zend_executor_globals *executor_globals) /* {{
|
|||
|
||||
static void executor_globals_dtor(zend_executor_globals *executor_globals) /* {{{ */
|
||||
{
|
||||
zend_ini_shutdown(executor_globals->ini_directives);
|
||||
#ifdef ZTS
|
||||
zend_ini_dtor(executor_globals->ini_directives);
|
||||
#else
|
||||
zend_ini_shutdown();
|
||||
#endif
|
||||
if (&executor_globals->persistent_list != global_persistent_list) {
|
||||
zend_destroy_rsrc_list(&executor_globals->persistent_list);
|
||||
}
|
||||
|
|
|
@ -114,11 +114,17 @@ ZEND_API int zend_ini_startup(void) /* {{{ */
|
|||
}
|
||||
/* }}} */
|
||||
|
||||
ZEND_API int zend_ini_shutdown(HashTable *ini_directives) /* {{{ */
|
||||
ZEND_API int zend_ini_shutdown(void) /* {{{ */
|
||||
{
|
||||
zend_ini_dtor(EG(ini_directives));
|
||||
return SUCCESS;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
ZEND_API void zend_ini_dtor(HashTable *ini_directives) /* {{{ */
|
||||
{
|
||||
zend_hash_destroy(ini_directives);
|
||||
free(ini_directives);
|
||||
return SUCCESS;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
|
|
@ -62,9 +62,10 @@ struct _zend_ini_entry {
|
|||
|
||||
BEGIN_EXTERN_C()
|
||||
ZEND_API int zend_ini_startup(void);
|
||||
ZEND_API int zend_ini_shutdown(HashTable *ini_directives);
|
||||
ZEND_API int zend_ini_shutdown(void);
|
||||
ZEND_API int zend_ini_global_shutdown(void);
|
||||
ZEND_API int zend_ini_deactivate(void);
|
||||
ZEND_API void zend_ini_dtor(HashTable *ini_directives);
|
||||
|
||||
ZEND_API int zend_copy_ini_directives(void);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue