|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #39432 PHP does not check c:\php for php.ini even though it's in the path
Submitted: 2006-11-08 15:22 UTC Modified: 2006-11-09 15:49 UTC
From: aren at cambre dot biz Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.2.0 OS: Windows Server 2003 SP1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
47 - 30 = ?
Subscribe to this entry?

 [2006-11-08 15:22 UTC] aren at cambre dot biz
I have used filemon (from to verify that php does not even check C:\php for a php.ini file even though c:\php is in my path.

Here is my path statement:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\Program Files\Intel\DMIX;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;c:\php

I tried moving c:\php to the 4th item in the path statement, and that didn't make a difference, either.

According to filemon, php is checking c:\windows\system32\inetsrv\ and C:\windows\. I think that is bizarre because c:\windows\system32\inetsrv\ isn't even in the path!

Expected result:
php should load php.ini out of c:\php.

Actual result:
php doesn't even check c:\php.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-08 15:34 UTC]
No bug here, PHP is not supposed to look for php.ini in PATH.

 [2006-11-08 15:44 UTC] aren at cambre dot biz
I see that now, and I now agree with the bogus status. It was buried pretty deeply at
 [2006-11-08 15:51 UTC] aren at cambre dot biz
I take back what I said. You have a documentation error.

From "Modify the Windows PATH environment variable to include the PHP directory. This way the PHP DLL files, PHP executables, and php.ini can all remain in the PHP directory without cluttering up the Windows system directory. For more details, see the FAQ on Setting the PATH."

I thought I wasn't smoking crack. :-)
 [2006-11-09 15:49 UTC]
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Feb 22 01:01:26 2020 UTC