#19953 [Bgs]: include_path doesn't work properly
| From: | cynic@php.net | Date: | Thu, 17 Oct 2002 15:24:56 +0000 |
| Subject: | #19953 [Bgs]: include_path doesn't work properly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-22667@lists.php.net to get a copy of this message | ||
ID: 19953
Updated by: cynic@php.net
Reported By: corinl@gmx.de
Status: Bogus
Bug Type: Filesystem function related
Operating System: suse linux 8.0
PHP Version: 4.2.2
New Comment:
nothing strange, really. the "./" bypasses include_path.
Previous Comments:
------------------------------------------------------------------------
[2002-10-17 10:03:50] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Don't use relative paths inside include_path, it'll only result in
problems.
------------------------------------------------------------------------
[2002-10-17 09:24:28] corinl@gmx.de
The include_path does not seem to work properly for include, may be
also for require etc.
Try the follwing:
ini_set('include_path',"..");
require_once("include/standart.php");
-> success
ini_set('include_path',"..");
require_once("./include/standart.php");
-> failure even it's the same file as above !!
strange, isn't it ??!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19953&edit=1