summaryrefslogtreecommitdiff
path: root/main/main.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2002-10-04 04:47:35 +0000
committerRasmus Lerdorf <rasmus@php.net>2002-10-04 04:47:35 +0000
commit989a61ed98f1865ac926d114448f0ebfa3a8ec43 (patch)
treec444efa3d6efd8a0f367b5251ff0092ef7da95bf /main/main.c
parent114dff39cefe7cdfddf6b4381da5c1c6f07e507f (diff)
downloadphp-git-989a61ed98f1865ac926d114448f0ebfa3a8ec43.tar.gz
As discussed, add --with-config-file-scan-dir compile-time switch defining
a directory which will be scanned for *.ini files after the main php.ini file has been parsed. This makes it much easier to automatically deploy a modular PHP since adding extensions which have their own ini switches can now be done by simply dropping a foo.ini file in the right directory and restarting. A list of parsed ini files is maintained and shown on the phpinfo page.
Diffstat (limited to 'main/main.c')
-rw-r--r--main/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/main.c b/main/main.c
index 1dc1e4645a..fc15c79aaa 100644
--- a/main/main.c
+++ b/main/main.c
@@ -1108,6 +1108,7 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod
REGISTER_MAIN_STRINGL_CONSTANT("PHP_SYSCONFDIR", PHP_SYSCONFDIR, sizeof(PHP_SYSCONFDIR)-1, CONST_PERSISTENT | CONST_CS);
REGISTER_MAIN_STRINGL_CONSTANT("PHP_LOCALSTATEDIR", PHP_LOCALSTATEDIR, sizeof(PHP_LOCALSTATEDIR)-1, CONST_PERSISTENT | CONST_CS);
REGISTER_MAIN_STRINGL_CONSTANT("PHP_CONFIG_FILE_PATH", PHP_CONFIG_FILE_PATH, sizeof(PHP_CONFIG_FILE_PATH)-1, CONST_PERSISTENT | CONST_CS);
+ REGISTER_MAIN_STRINGL_CONSTANT("PHP_CONFIG_FILE_SCAN_DIR", PHP_CONFIG_FILE_SCAN_DIR, sizeof(PHP_CONFIG_FILE_SCAN_DIR)-1, CONST_PERSISTENT | CONST_CS);
REGISTER_MAIN_STRINGL_CONSTANT("PHP_SHLIB_SUFFIX", PHP_SHLIB_SUFFIX, sizeof(PHP_SHLIB_SUFFIX)-1, CONST_PERSISTENT | CONST_CS);
php_output_register_constants(TSRMLS_C);
php_rfc1867_register_constants(TSRMLS_C);