php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #39894 IniFilePath and PHPRC
Submitted: 2006-12-20 00:53 UTC Modified: 2007-08-17 11:15 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: graham at directhostinguk dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 4.4.4 OS: Windows 2003 Server Standard
Private report: No CVE-ID: None
 [2006-12-20 00:53 UTC] graham at directhostinguk dot com
Description:
------------
According to this page 

http://us2.php.net/configuration

I should be able to run PHP4 and PHP 5.2.0 on the same system using PHPRC to set the PHP5 Path and Registry Entry  IniFilePath to set PHP4 Path.

This doesn?t seem to be working

My PHPRC System Variable is set to: c:\php5 and HKLM/Software/PHP/IniFilePath is set to: c:\php4

like this PHP4 tries loading php.ini from c:\php5, this is not what your document says should happen
 
If I remove the PHPRC Variable and just use IniFilePath I can move the php4 ini around the system with no problem

It?s only when the PHPRC Variable is present that php4 starts using PHPRC before the iniFilePath Registry Entry

I am using C:\php4\php.exe and C:\php5\php-cgi.exe

My System Enviroment PATH includes c:\php4;c:\php5


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-20 11:02 UTC] tony2001@php.net
The docs are wrong.
 [2006-12-20 11:17 UTC] graham at directhostinguk dot com
So there is no way of stopping clients from putting php.ini in there webspace allowing them to override the global php.ini if your running both PHP4 and PHP5
 [2007-08-17 11:15 UTC] vrana@php.net
HKLM/Software/PHP/IniFilePath is searched after PHPRC as written in the docs.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 22:01:33 2025 UTC