ID:               46972
 Updated by:       paj...@php.net
 Reported By:      leonardo at kreativ dot ro
-Status:           Open
+Status:           Assigned
 Bug Type:         PHP options/info functions
 Operating System: win32 only - Windows 2003
 PHP Version:      5.2.8
-Assigned To:      
+Assigned To:      pajoye


Previous Comments:
------------------------------------------------------------------------

[2009-01-10 09:56:22] lorenzo at perusia dot it

Same problem experienced on Windows XP

------------------------------------------------------------------------

[2008-12-30 13:09:18] leonardo at kreativ dot ro

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 this bug report at http://bugs.php.net/?id=46972&edit=1

Reply via email to