php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16047 include_path does NOT default to .
Submitted: 2002-03-13 16:28 UTC Modified: 2002-03-13 20:47 UTC
From: pettersen at cpec dot org Assigned:
Status: Closed Package: *Configuration Issues
PHP Version: 4.1.2 OS: Windows 2000
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pettersen at cpec dot org
New email:
PHP Version: OS:

 

 [2002-03-13 16:28 UTC] pettersen at cpec dot org
Hi,

Just drove my self crazy upgrading to the latest build for win32 4.1.2, as an apache module

Granted I'm not very confident as to how this *should* work, I think I found a minor bug/inconsistency.

If you do not set include_path it defaults to C:\php4\pear (or was it c:\php4\includes\pear ) I believe based upon reading this, "
include_path string
Specifies a list of directories where the require(), include() and fopen_with_path() functions look for files. The format is like the system's PATH environment variable: a list of directories separated with a colon in UNIX or semicolon in Windows. Example 3-3. UNIX include_path

include_path=.:/home/httpd/php-lib
 
 
Example 3-4. Windows include_path

include_path=".;c:\www\phplib"
 
 
<b>The default value for this directive is . (only the current directory)</b>.
"

So... I'm guessing it should default to "." instead of C:\php4\pear (or whatever) ... 

All of the includes on my site went bunk right after I upgraded... setting include_path = "." rectified this for me.

If this is obvious, and the intended effect, I apoligize in advance for my erroroneous bug report.  

Erik

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-13 16:44 UTC] pettersen at cpec dot org
I think someone else got the core of this issue and described it in more technical terms in Bug #15865

Sorry about the duplication, I did search before submitting, however I didn't find Bug #15865 until I browsed all the bugs for version 4.1.2

Thanks (so I guess you could close this, if the other one will get fixed)   !

Erik
 [2002-03-13 20:47 UTC] sniper@php.net
Fixed in CVS. Fix will be in PHP 4.2.0.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 12:01:30 2024 UTC