diff options
Diffstat (limited to 'main/main.c')
| -rw-r--r-- | main/main.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/main/main.c b/main/main.c index 6d275d1599..cb58163e24 100644 --- a/main/main.c +++ b/main/main.c @@ -1415,17 +1415,6 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod le_index_ptr = zend_register_list_destructors_ex(NULL, NULL, "index pointer", 0); - /* Initialize configuration_hash */ - if (php_init_config_hash() == FAILURE) { - return FAILURE; - } - - /* Register PHP core ini entries */ - REGISTER_INI_ENTRIES(); - - /* Register Zend ini entries */ - zend_register_standard_ini_entries(TSRMLS_C); - /* this will read in php.ini, set up the configuration parameters, load zend extensions and register php function extensions to be loaded later */ @@ -1433,6 +1422,12 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod return FAILURE; } + /* Register PHP core ini entries */ + REGISTER_INI_ENTRIES(); + + /* Register Zend ini entries */ + zend_register_standard_ini_entries(TSRMLS_C); + /* Disable realpath cache if safe_mode or open_basedir are set */ if (PG(safe_mode) || (PG(open_basedir) && *PG(open_basedir))) { CWDG(realpath_cache_size_limit) = 0; |
