php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20908 PHP include/require changed: does not properly search include path
Submitted: 2002-12-09 08:55 UTC Modified: 2002-12-09 09:36 UTC
From: WPinegar at healthtech dot net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4CVS-2002-12-09 (dev) OS: Windows 2000 Server
Private report: No CVE-ID: None
 [2002-12-09 08:55 UTC] WPinegar at healthtech dot net
My PHP.INI file contains the following include_path:

include_path = ".;C:\Inetpub\php_include;C:\Inetpub\pear;C:\Inetpub\wwwroot"

In a PHP application I usually included the following directive:

  require ("/admin/class.overlib/class.overlib.php3");

In PHP 4.2.3 it would pickup the file (it's located in C:\Inetpub\wwwroot\admin\class.overlib).  However the current version of PHP 4.3.0-dev cannot locate the file unless I change the require directive to the following:

  require ("admin/class.overlib/class.overlib.php3");

Was this change made on purpose or is this feature now broken?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-09 09:14 UTC] chregu@php.net
Looks like it was broken before and does behave correctly now...

 [2002-12-09 09:36 UTC] WPinegar at healthtech dot net
Thanks!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 20 20:00:03 2025 UTC