php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #40345 HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath\x.y.z is wrong
Submitted: 2007-02-03 20:00 UTC Modified: 2007-02-03 23:49 UTC
From: pfribeiro at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Windows Server 2003 R2
Private report: No CVE-ID: None
 [2007-02-03 20:00 UTC] pfribeiro at gmail dot com
Description:
------------
The documentation at http://www.php.net/manual/en/configuration.php#configuration.file states that PHP will look for the configuration file in:

HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath\x.y.z

However it seems to be incorrect since the only way I've been able to use it is:

HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x.y.z\IniFilePath



Reproduce code:
---------------
1) Configure PHP for IIS6
2) Add the following registry key in order to load php.ini, according to the documentation for PHP 5.2.0:

HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath\5


Expected result:
----------------
Expected PHP to look for php.ini in the registry key: HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath\5

Actual result:
--------------
PHP looks for php.ini in the registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\PHP\5\IniFilePath

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-03 23:49 UTC] nlopess@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2020-02-07 06:10 UTC] phpdocbot@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=843bf8f0eb334fc6976c7d86a33f5e6b0099976d
Log: fix bug #40345: correct windows registry locations
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 16:01:34 2025 UTC