From:             leonardo at kreativ dot ro
Operating system: Windows 2003
PHP version:      5.2.8
PHP Bug Type:     *Configuration Issues
Bug description:  php.ini is not loaded from registry

Description:
------------
As described in the documentation at:
http://www.php.net/manual/en/configuration.file.php the file php.ini is
loaded from Windows Registry as follows:

"[...] in order: HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x.y.z\IniFilePath,
HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x.y\IniFilePath and
HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x\IniFilePath, where x, y and z mean the
PHP major, minor and release versions."

a) The file resides in the path d:\php\5.2.8.
b) I use php5isapi.dll on IIS 6 on Windows 2003
c) I inserted this key in the registry as follows:

[HKEY_LOCAL_MACHINE\SOFTWARE\PHP\5.2.8]
"IniFilePath"="d:\php\5.2.8"

but it still doesn't work. phpinfo() reports the configuration path as
C:\WINDOWS.

I guess either the documentation lacks of specific details about the
registry settings or this 5.2.8 version ignores the registry settings.

For me it is important so that this setting should work because I intend
to keep several versions of PHP in the future and I don't want to change
the environment settings (Path or PHPRC).

Expected result:
----------------
To load the php.ini from Windows Registry.

Actual result:
--------------
It loads the php.ini from C:\Windows

-- 
Edit bug report at http://bugs.php.net/?id=46972&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=46972&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=46972&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=46972&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=46972&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=46972&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=46972&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=46972&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=46972&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=46972&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=46972&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=46972&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=46972&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=46972&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=46972&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=46972&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=46972&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=46972&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=46972&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=46972&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=46972&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=46972&r=mysqlcfg

Reply via email to