From:             pfribeiro at gmail dot com
Operating system: Windows Server 2003 R2
PHP version:      Irrelevant
PHP Bug Type:     Documentation problem
Bug description:  HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath\x.y.z is wrong

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

-- 
Edit bug report at http://bugs.php.net/?id=40345&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40345&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40345&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40345&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40345&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40345&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40345&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40345&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40345&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40345&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40345&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40345&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40345&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40345&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40345&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40345&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40345&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40345&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40345&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40345&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40345&r=mysqlcfg

Reply via email to