|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11200 include_path does not function correctly when multiple paths are specified
Submitted: 2001-05-30 14:59 UTC Modified: 2001-06-05 00:24 UTC
From: WPinegar at healthtech dot net Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0.5 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: WPinegar at healthtech dot net
New email:
PHP Version: OS:


 [2001-05-30 14:59 UTC] WPinegar at healthtech dot net
When running PHP 4.0.5 in CGI on Windows 2000 I've noticed that setting the php.ini's include_path to "include_path = .;C:\Inetpub\Include" does not work.  The include path only results in the first path being searched.  Everything after the first ";" is ignored.

Also, when I run the phpinfo() function it shows that the include_path is simply "." instead of showing both items in the include path.

Can someone correct this and e-mail me the fix?  Thanks!


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-30 22:18 UTC]
Put your php.ini into place where it actually gets read.
And ask further support questions on some appropriate mailing list. This is not a bug.

 [2001-05-31 09:27 UTC] WPinegar at healthtech dot net
The php.ini file is in my WINDOWS subdirectory and is indeed being picked up by PHP.

If I change the include_path to C:\Inetpub\Include;. only the first part of the path is searched (C:\Inetpub\Include)the local directory is no longer be searched.

When I execute phpinfo() it only show the include_path as simply "C:\Inetpub\Include" instead of showing both items in the include path.

This is a bug.
 [2001-06-05 00:24 UTC]
Sorry, I should have been more clear, this works:

include_path= ".;C:\inetpub\include" 

; is treated as comment in php.ini. So you need to place "'s
around the path. (everywhere)

I put some example's into the php.ini-dist in CVS so this
is more clear in future. 

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 04:01:31 2024 UTC