summaryrefslogtreecommitdiff
path: root/main/main.c
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-09-01 14:44:15 +0000
committerfoobar <sniper@php.net>2005-09-01 14:44:15 +0000
commit64cfbf539f67eaa6ee84dff5a36e93c568b09eab (patch)
tree66c4de5979b9512732b265e05a5e839c5bd3d5ba /main/main.c
parent248c30dad75d8ab3700eade2f9e18ff408faba26 (diff)
downloadphp-git-64cfbf539f67eaa6ee84dff5a36e93c568b09eab.tar.gz
MFH: - Fixed bug #34307 (OnUpdateStringUnempty INI options can be set empty)
Diffstat (limited to 'main/main.c')
-rw-r--r--main/main.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/main/main.c b/main/main.c
index cae891c5f8..6d275d1599 100644
--- a/main/main.c
+++ b/main/main.c
@@ -1415,17 +1415,24 @@ 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 */
- if (php_init_config() == FAILURE) {
+ if (php_init_config(TSRMLS_C) == FAILURE) {
return FAILURE;
}
- REGISTER_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;