php.net |  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
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: 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!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-30 22:18 UTC] sniper@php.net
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] sniper@php.net
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: Fri Apr 19 23:01:28 2024 UTC