php.net |  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
Votes:1
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:
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: johannes dot kingma at gmail dot com
New email:
PHP Version: OS:

 

 [2017-07-25 11:38 UTC] johannes dot kingma at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/configuration.file
---
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). 

Summery:
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.


Patches

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

History

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

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