php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46201 Bug #44625 is NOT bogus!
Submitted: 2008-09-30 02:41 UTC Modified: 2008-09-30 11:39 UTC
From: jrhernandez05 at gmail dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.2.6 OS: Windows Vista Home Premium
Private report: No CVE-ID: None
 [2008-09-30 02:41 UTC] jrhernandez05 at gmail dot com
Description:
------------
This is a duplicate of bug #44625, since I cannot add comments to "bogus" bugs and cannot change the bug status.

I was able to confirm this bug. I set PHPIniDir correctly inside httpd.conf to C:\Windows, and the Loaded Configuration File in phpinfo() returned "C:\Windows\php.ini", yet my include_path still had an old value. After many different attempts, I found out that if there is a php.ini inside the directory where the php executable is, that file will be read instead of what's specified in PHPIniDir.

My workaround was to remove the php.ini from C:\Windows and set PHPIniDir to the php.ini inside the php executable directory.

P.S. This is NOT bogus, it's a real bug in Windows Vista (I am a ZCE, so this is not a "n00b" error).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-30 10:13 UTC] scottmac@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

You don't need to set PHPIniDir, there are a few places that are tried by default.

Directory of binary
HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath registry value
c:\Windows

You found the issue and its not a bug.

 [2008-09-30 10:35 UTC] jrhernandez05 at gmail dot com
This is indeed a bug, or at the very least a documentation error. According to http://www.php.net/manual/en/configuration.php, the first place that PHP will look for the INI file is based on the PHPIniDir directive, if specified. In this case it was specified and I set it to C:\Windows, and PHP did display this path in the "Loaded Configuration File" section, yet C:\php\php.ini was the one actually being parsed. Also, I do not have any of those registry settings set.
 [2008-09-30 11:39 UTC] pajoye@php.net
please don't comment in duplicated bugs but only in one report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 16 03:01:33 2024 UTC