php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49318 php-cgi.exe doesn't recognize PHPRC or registry settings
Submitted: 2009-08-21 09:19 UTC Modified: 2009-08-21 09:47 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: jKgD1QkN at peterertel dot name Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 5.3.0 OS: Windows Server 2003 x64
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jKgD1QkN at peterertel dot name
New email:
PHP Version: OS:

 

 [2009-08-21 09:19 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-21 09:20 UTC] jKgD1QkN at peterertel dot name
This looks somewhat similar to #46972 but with the current version of PHP. Is this not considered a "relevant" issue?
 [2009-08-21 09:47 UTC] pajoye@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

#46972
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Aug 16 02:00:03 2025 UTC