php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: aren at cambre dot biz
New email:
PHP Version: OS:

 

 [2006-11-08 15:22 UTC] aren at cambre dot biz
Description:
------------
I have used filemon (from sysinternals.com) 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-08 15:34 UTC] tony2001@php.net
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 http://us2.php.net/manual/en/configuration.php#configuration.file.
 [2006-11-08 15:51 UTC] aren at cambre dot biz
I take back what I said. You have a documentation error.

From http://us2.php.net/manual/en/install.windows.iis.php: "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] nlopess@php.net
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-2019 The PHP Group
All rights reserved.
Last updated: Sun Dec 08 18:01:24 2019 UTC