diff options
author | foobar <sniper@php.net> | 2005-09-02 14:05:46 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2005-09-02 14:05:46 +0000 |
commit | 1890173d8cf36566c6ed2ae2e0912b2e5c805f74 (patch) | |
tree | dbea0f28de51fa3bfc50f11d8272635ad6e83a4e /main | |
parent | 8c4d1f66573863a3bd6131b8912ff3a279fa002e (diff) | |
download | php-git-1890173d8cf36566c6ed2ae2e0912b2e5c805f74.tar.gz |
Revert
Diffstat (limited to 'main')
-rw-r--r-- | main/main.c | 17 | ||||
-rw-r--r-- | main/php_ini.c | 12 | ||||
-rw-r--r-- | main/php_ini.h | 1 |
3 files changed, 10 insertions, 20 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; diff --git a/main/php_ini.c b/main/php_ini.c index 82db68c6ad..a720127aa2 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -254,14 +254,6 @@ static void pvalue_config_destructor(zval *pvalue) } /* }}} */ -/* {{{ php_init_config_hash - */ -int php_init_config_hash(void) -{ - return zend_hash_init(&configuration_hash, 0, NULL, (dtor_func_t) pvalue_config_destructor, 1); -} -/* }}} */ - /* {{{ php_init_config */ int php_init_config(TSRMLS_D) @@ -278,6 +270,10 @@ int php_init_config(TSRMLS_D) int l, total_l=0; zend_llist_element *element; + if (zend_hash_init(&configuration_hash, 0, NULL, (dtor_func_t) pvalue_config_destructor, 1) == FAILURE) { + return FAILURE; + } + if (sapi_module.ini_defaults) { sapi_module.ini_defaults(&configuration_hash); } diff --git a/main/php_ini.h b/main/php_ini.h index 1b3c7a0f5b..ed630d96d1 100644 --- a/main/php_ini.h +++ b/main/php_ini.h @@ -24,7 +24,6 @@ #include "zend_ini.h" BEGIN_EXTERN_C() -int php_init_config_hash(void); int php_init_config(TSRMLS_D); int php_shutdown_config(void); void php_ini_register_extensions(TSRMLS_D); |