]> granicus.if.org Git - php/commitdiff
revert
authorfoobar <sniper@php.net>
Fri, 2 Sep 2005 14:08:09 +0000 (14:08 +0000)
committerfoobar <sniper@php.net>
Fri, 2 Sep 2005 14:08:09 +0000 (14:08 +0000)
main/main.c
main/php_ini.c
main/php_ini.h

index 0a7339f3231bda9bed72ce7643775012b97b4fd2..aad569f0e56f1f988087726c18562e9f4c68b535 100644 (file)
@@ -1535,8 +1535,10 @@ 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) {
+       /* this will read in php.ini, set up the configuration parameters,
+          load zend extensions and register php function extensions 
+          to be loaded later */
+       if (php_init_config(TSRMLS_C) == FAILURE) {
                return FAILURE;
        }
 
@@ -1546,13 +1548,6 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod
        /* 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 */
-       if (php_init_config(TSRMLS_C) == FAILURE) {
-               return FAILURE;
-       }
-
        orig_unicode = UG(unicode);
        UG(unicode) = 0;
 
index 82db68c6adb2546ff09a8380ff36bd025e9c0f3b..a720127aa2655e09027223fff7f140f9cddb2fb2 100644 (file)
@@ -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);
        }
index 1b3c7a0f5be245264b6a03b7e5abbb9141a16df7..ed630d96d156848f45aa3d03bce4b503c0c5629c 100644 (file)
@@ -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);