#46201 [Bgs]: Bug #44625 is NOT bogus!

2008-09-30 Thread pajoye
 ID:   46201
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jrhernandez05 at gmail dot com
 Status:   Bogus
 Bug Type: Apache2 related
 Operating System: Windows Vista Home Premium
 PHP Version:  5.2.6
 New Comment:

please don't comment in duplicated bugs but only in one report.


Previous Comments:


[2008-09-30 10:35:54] 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 10:13:06] [EMAIL PROTECTED]

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 02:41:17] 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).






-- 
Edit this bug report at http://bugs.php.net/?id=46201&edit=1



#46201 [Bgs]: Bug #44625 is NOT bogus!

2008-09-30 Thread jrhernandez05 at gmail dot com
 ID:   46201
 User updated by:  jrhernandez05 at gmail dot com
 Reported By:  jrhernandez05 at gmail dot com
 Status:   Bogus
 Bug Type: Apache2 related
 Operating System: Windows Vista Home Premium
 PHP Version:  5.2.6
 New Comment:

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.


Previous Comments:


[2008-09-30 10:13:06] [EMAIL PROTECTED]

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 02:41:17] 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).






-- 
Edit this bug report at http://bugs.php.net/?id=46201&edit=1