#30881 [Bgs->Opn]: C++ like include (path/search) in PHP?
| From: | ovdspek at liacs dot nl | Date: | Thu, 25 Nov 2004 22:59:48 +0000 |
| Subject: | #30881 [Bgs->Opn]: C++ like include (path/search) in PHP? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-69455@lists.php.net to get a copy of this message | ||
ID: 30881
User updated by: ovdspek at liacs dot nl
Reported By: ovdspek at liacs dot nl
-Status: Bogus
+Status: Open
Bug Type: Scripting Engine problem
Operating System: Debian Linux Sarge
PHP Version: 4.3.9
New Comment:
I'm not asking for PHP (CLI) to change the cwd to that of the script.
I'm only asking for PHP to look for files *relative to the directory of
the current script*, as the documentation claims it does.
Note that the directory of the current script is *not* equivalent to
the cwd (current working directory).
> Files for including are first looked in include_path relative to the
current working directory and then in include_path relative to the
directory of current script.
Previous Comments:
------------------------------------------------------------------------
[2004-11-25 22:55:24] tony2001@php.net
PHP CLI "does not change the working directory to that of the script"
(c) http://www.php.net/manual/en/features.commandline.php
In your case documentation says about other SAPIs.
------------------------------------------------------------------------
[2004-11-24 14:45:34] ovdspek at liacs dot nl
Oops, forgot to reopen.
------------------------------------------------------------------------
[2004-11-24 14:34:58] ovdspek at liacs dot nl
And doesn't the documentation claim to already search relative to the
script dir?
> and then in include_path relative to the directory of current script.
------------------------------------------------------------------------
[2004-11-24 14:33:16] ovdspek at liacs dot nl
I'm asking for an addition, not a modification.
What kind of scripts would be broken if you search additional paths
(after searching in the old way)?
------------------------------------------------------------------------
[2004-11-24 14:29:14] derick@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
This is expected, and we can not change this as it will break a lot of
scripts.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/30881
--
Edit this bug report at http://bugs.php.net/?id=30881&edit=1