Bug #62955 [NEW]: Only one directive is loaded from "Per Directory Values" Windows registry
| From: | aserbulov at parallels dot com | Date: | Tue, 28 Aug 2012 05:56:58 +0000 |
| Subject: | Bug #62955 [NEW]: Only one directive is loaded from "Per Directory Values" Windows registry | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-172971@lists.php.net to get a copy of this message | ||
From: aserbulov at parallels dot com
Operating system: Windows
PHP version: 5.3.16
Package: PHP options/info functions
Bug Type: Bug
Bug description:Only one directive is loaded from "Per Directory Values" Windows registry
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.
--
Edit bug report at https://bugs.php.net/bug.php?id=62955&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62955&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62955&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62955&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=62955&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62955&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=62955&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=62955&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=62955&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=62955&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=62955&r=support
Expected behavior: https://bugs.php.net/fix.php?id=62955&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=62955&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=62955&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=62955&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62955&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=62955&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=62955&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=62955&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=62955&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=62955&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=62955&r=mysqlcfg