#19953 [Com]: include_path doesn't work properly

From: Date: Sun, 20 Oct 2002 21:13:33 +0000
Subject: #19953 [Com]: include_path doesn't work properly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-22897@lists.php.net to get a copy of this message
ID: 19953 Comment by: php@familjenberggren.com 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: Hi, I suspect that I have the same problem. Platform: Suse Linux 8.0, Apache 2.0.43, php4-STABLE-200210090900 My Squirrelmail installation can not initialize plugins due to undefined variables. There are a few require_once() statements that are involved. I need to verify this more. But it kind of points in the direction of require_once() problem. Previous Comments: ------------------------------------------------------------------------ [2002-10-17 10:49:31] corinl@gmx.de well, but why? it's not documented (or didn't i just find it?) and it's no absolute path but a relative one. ------------------------------------------------------------------------ [2002-10-17 10:24:56] cynic@php.net nothing strange, really. the "./" bypasses include_path. ------------------------------------------------------------------------ [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

« previous php.bugs (#22897) next »