#49318 [Opn]: php-cgi.exe doesn't recognize PHPRC or registry settings
| From: | jKgD1QkN at peterertel dot name | Date: | Fri, 21 Aug 2009 09:20:47 +0000 |
| Subject: | #49318 [Opn]: php-cgi.exe doesn't recognize PHPRC or registry settings | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-141338@lists.php.net to get a copy of this message | ||
ID: 49318
User updated by: jKgD1QkN at peterertel dot name
Reported By: jKgD1QkN at peterertel dot name
Status: Open
Bug Type: CGI related
Operating System: Windows Server 2003 x64
PHP Version: 5.3.0
New Comment:
This looks somewhat similar to #46972 but with the current version of
PHP. Is this not considered a "relevant" issue?
Previous Comments:
------------------------------------------------------------------------
[2009-08-21 09:19:06] jKgD1QkN at peterertel dot name
Description:
------------
The CGI searches in %WINDIR% and InstallDir only and does not obey
PHPRC or registry settings.
Reproduce code:
---------------
Configure a Win2k3 x64 System with IIS6 and MS FastCGI Extension. Do
one of the following:
- put: HKLM\Software\Wow6432node\PHP\5\, IniFilePath = "Path to php.ini
other than InstallDir or %WINDIR%"
- append (%WINDIR%\system32\inetsrv\fcgiext.ini, PHP section):
EnvironmentVars=PHPRC:new path to php.ini
Then restart the IIS and call a page with phpinfo().
Expected result:
----------------
Configuration File (php.ini) Path = Loaded Configuration File
Or at least:
Configuration File (php.ini) Path = chosen path in either registry or
PHPRC
Or
Loaded Configuration File = chosen path in either registry or PHPRC
Actual result:
--------------
Configuration File (php.ini) Path C:\WINDOWS
Loaded Configuration File C:\Program Files (x86)\PHP\php.ini
PHPRC=c:\inetpub\config
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49318&edit=1