Bug #46972 [Asn->Fbk]: php.ini is not loaded from registry

From: Date: Tue, 30 Jul 2013 02:28:32 +0000
Subject: Bug #46972 [Asn->Fbk]: php.ini is not loaded from registry
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-180552@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=46972&edit=1

 ID:                 46972
 Updated by:         yohgaki@php.net
 Reported by:        leonardo at kreativ dot ro
 Summary:            php.ini is not loaded from registry
-Status:             Assigned
+Status:             Feedback
 Type:               Bug
 Package:            PHP options/info functions
 Operating System:   win32 only - Windows 2003
 PHP Version:        5.2.8
 Assigned To:        pajoye
 Block user comment: N
 Private report:     N

 New Comment:

Please try using this snapshot:

  http://snaps.php.net/php5.4-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/




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


Thread (5 messages)

« previous php.bugs (#180552) next »