php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62955 Only one directive is loaded from "Per Directory Values" Windows registry
Submitted: 2012-08-28 05:56 UTC Modified: 2012-08-30 12:23 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: aserbulov at parallels dot com Assigned: felipe (profile)
Status: Closed Package: PHP options/info functions
PHP Version: 5.3.16 OS: Windows
Private report: No CVE-ID: None
 [2012-08-28 05:56 UTC] aserbulov at parallels dot com
Description:
------------
Only one directive is loaded from "Per Directory Values" Windows registry.

Bug has been introduced by commit:
https://github.com/php/php-src/commit/93c91c733cf2259263e4d8c0f3ccc254246d404d

Test script:
---------------
Put some directives in Windows registry:
---
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\PHP\Per Directory Values\C\inetpub\wwwroot]
"open_basedir"="C:\\Inetpub\\wwwroot\\;C:\\Windows\\Temp\\"
"memory_limit"="1M"
"error_reporting"="E_ALL & ~E_NOTICE"
---

Put script to "C:\Inetpub\wwwroot" directory and browse it.
---
<?php
phpinfo();
---


Expected result:
----------------
"open_basedir", "memory_limit" and "error_reporting" directives in result have the same values as in Windows registry.

Actual result:
--------------
"error_reporting" directive have the same value as in Windows registry, but "open_basedir" and "memory_limit" directives have default values.

Patches

registry.patch (last revision 2012-08-29 09:45 UTC by aserbulov at parallels dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-08-29 10:18 UTC] laruence@php.net
-Assigned To: +Assigned To: felipe
 [2012-08-30 12:22 UTC] felipe@php.net
Automatic comment on behalf of felipensp@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=de884997e0bc5cfc49b955099f369d1beae941b0
Log: - Fixed bug #62955 (Only one directive is loaded from &quot;Per Directory Values&quot; Windows registry)
 [2012-08-30 12:23 UTC] felipe@php.net
-Status: Assigned +Status: Closed
 [2012-08-30 12:23 UTC] felipe@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

Thanks.
 [2012-09-09 21:56 UTC] stas@php.net
Automatic comment on behalf of felipensp@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=d1b8eeb2d8dda8bc2697d0dcea9c129f6fc77b9a
Log: - Fixed bug #62955 (Only one directive is loaded from &quot;Per Directory Values&quot; Windows registry)
 [2014-10-07 23:22 UTC] stas@php.net
Automatic comment on behalf of felipensp@gmail.com
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=de884997e0bc5cfc49b955099f369d1beae941b0
Log: - Fixed bug #62955 (Only one directive is loaded from &quot;Per Directory Values&quot; Windows registry)
 [2014-10-07 23:33 UTC] stas@php.net
Automatic comment on behalf of felipensp@gmail.com
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=de884997e0bc5cfc49b955099f369d1beae941b0
Log: - Fixed bug #62955 (Only one directive is loaded from &quot;Per Directory Values&quot; Windows registry)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 11:01:30 2024 UTC