That fix for bug #34307 broke my ini settings.
For example PHP_EXTENSION_DIR no longer is pulled from ini file. only
gets default value.
I had to move REGISTER_INI_ENTRIES(); and
zend_register_standard_ini_entries(TSRMLS_C); after the
php_init_config() call again to get it working.
Code now looks like it did before other than php_init_config_hash() now
being called on its own rather than within php_init_config().
attached is the patch i had to do to get it working again.
note: this is under windows havent tried it elsewhere.
Rob
Index: main.c
===================================================================
RCS file: /repository/php-src/main/main.c,v
retrieving revision 1.647
diff -u -p -r1.647 main.c
--- main.c 1 Sep 2005 14:42:52 -0000 1.647
+++ main.c 2 Sep 2005 04:54:35 -0000
@@ -1540,12 +1540,6 @@ int php_module_startup(sapi_module_struc
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 */
@@ -1553,6 +1547,12 @@ int php_module_startup(sapi_module_struc
return FAILURE;
}
+ /* Register PHP core ini entries */
+ REGISTER_INI_ENTRIES();
+
+ /* Register Zend ini entries */
+ zend_register_standard_ini_entries(TSRMLS_C);
+
orig_unicode = UG(unicode);
UG(unicode) = 0;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php