php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15865 default PHP_INCLUDE_PATHset to "c:\\php4\\pear"
Submitted: 2002-03-04 21:19 UTC Modified: 2002-03-13 20:46 UTC
From: enricod at videotron dot ca Assigned:
Status: Closed Package: PHP options/info functions
PHP Version: 4.1.2 OS: Windows XP
Private report: No CVE-ID: None
 [2002-03-04 21:19 UTC] enricod at videotron dot ca
in the file php-4.1.2/main/config.w32.h there is the
following definition :

#define PHP_INCLUDE_PATH	"c:\\php4\\pear"

in the php-4.1.1 tree it was :

#define PHP_INCLUDE_PATH        NULL

sometimes this causes the include() function not to work,
complaining that it didnt find the included file in C:\php4\pear. I reverted back to NULL an the errors are gone.

ciao,
Enrico

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-13 20:46 UTC] sniper@php.net
Fixed in CVS and fix will be in PHP 4.2.0.

 [2004-01-23 10:52 UTC] pjolin at e-c dot qc dot ca
As of PHP 4.3.1 and up (still true in 4.3.4), this is still an issue. 

Sometimes (apparently randomly) the include_path will still default out to C:\php4\pear.

Note that no matter if the default is null or C:\php4\pear, the problem's core is still present -- occasionnally, PHP just ignores the include_path setting and defaults out to (something), which basically breaks any application that relies on include paths.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 15:01:32 2024 UTC