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;
}
/* 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;
}
/* }}} */
-/* {{{ 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)
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);
}
#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);