|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #74987 Registry keys no longer valid
Submitted: 2017-07-25 11:38 UTC Modified: 2017-07-31 11:49 UTC
Avg. Score:1.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: johannes dot kingma at gmail dot com Assigned:
Status: Open Package: PHP options/info functions
PHP Version: 7.2Git-2017-07-25 (Git) OS: Windows 10
Private report: No CVE-ID:
Have you experienced this issue?
Rate the importance of this bug to you:

 [2017-07-25 11:38 UTC] johannes dot kingma at gmail dot com
From manual page:
Bullet 3 should read:

As of PHP 5.2.0, the location of the php.ini file can be set for different versions of PHP. The following registry keys are examined in order: [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\PHP\x.y.z], [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\PHP\x.y] and [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\PHP\x], where x, y and z mean the PHP major, minor and release versions. If there is a value for IniFilePath in any of these keys, the first one found will be used as the location of the php.ini (Windows only).
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\PHP], value of IniFilePath (Windows only). 

Keys for 32bit binaries are stored under HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\
Keys for 64bit binaries are stored under HKEY_LOCAL_MACHINE\SOFTWARE\

Test script:
<?php echo phpinfo(1);

Expected result:
Loaded Configuration File shows the file that is loaded.


patch-1501670016 (last revision 2017-08-02 15:03 UTC) by johannes dot kingma at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-07-31 11:49 UTC]
Thanks for the report. Would you be up to send a doc patch?

PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Tue Aug 29 15:01:52 2017 UTC