From: hyponiq at gmail dot com
Operating system: Windows Vista/IIS 7.0
PHP version: 5.2.9
PHP Bug Type: *Configuration Issues
Bug description: Per-directory configuration files completely override master
configuration file
Description:
When using per-directory or per-host php.ini files, none of the master
file's configuration settings are read (i.e. from
"C:\Server\PHP\PHP5\php.ini"). PHP requires that all settings that are
needed to have a value be set per-directory/per-host. In my mind, PHP
should load the default configuration file (i.e.
C:\Server\PHP\PHP5\php.ini) as well as the per-directory/per-host config
file (i.e. C:\Server\Sites\Framework\php.ini), load the directives from the
master file, and then override/replace the values for those directives from
the child config file.
Reproduce code:
---
master php.ini:
cgi.force_redirect = 0
doc_root =
extension_dir = "C:/Server/PHP/PHP5/ext"
Host php.ini:
doc_root = "C:\Server\Sites\Framework"
Expected result:
when phpinfo() executed:
System Information
-
Loaded Configuration File(s): C:\Server\Sites\Framework\php.ini;
C:\Server\PHP\PHP5\php.ini
Directive Values
-
cgi.force_redirect: Local: 0; Master: 0;
doc_root: Local: C:\Server\Sites\Framework; Master: no value;
extension_dir: Local: C:/Server/PHP/PHP5/ext; Master:
C:/Server/PHP/PHP5/ext
Actual result:
--
when phpinfo() executed:
System Information
-
Loaded Configuration File: C:\Server\Sites\Framework\php.ini
Directive Values
-
cgi.force_redirect: Local: no value; Master: no value
doc_root: Local: C:\Server\Sites\Framework; Master:
C:\Server\Sites\Framework
extension_dir: Local: no value; Master: no value
--
Edit bug report at http://bugs.php.net/?id=48031&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=48031&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=48031&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=48031&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=48031&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=48031&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=48031&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=48031&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=48031&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=48031&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=48031&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=48031&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=48031&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=48031&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=48031&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48031&r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=48031&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=48031&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=48031&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=48031&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=48031&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=48031&r=mysqlcfg