Bug->Doc #51569 [Opn]: Documentation of include missing fallback to calling script's cwd
| From: | privat at ni-po dot com | Date: | Sat, 22 May 2010 17:44:30 +0000 |
| Subject: | Bug->Doc #51569 [Opn]: Documentation of include missing fallback to calling script's cwd | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-4422@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51569&edit=1
ID: 51569
User updated by: privat at ni-po dot com
Reported by: privat at ni-po dot com
Summary: Documentation of include missing fallback to calling
script's cwd
Status: Open
-Type: Bug
+Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
New Comment:
Now *really* updated it...
Previous Comments:
------------------------------------------------------------------------
[2010-05-22 19:43:30] privat at ni-po dot com
Updated bug type and php version
------------------------------------------------------------------------
[2010-04-16 14:00:30] privat at ni-po dot com
Description:
------------
The documentation of include
(http://php.net/manual/en/function.include.php) is missing an important
fact:
If PHP cannot identify the filename as a stream wrapper, a relative or
absolute path and cannot find filename in one of the include paths, it
will fall back to the calling script's current working directory. See
http://svn.php.net/viewvc/php/php-src/trunk/main/fopen_wrappers.c?view=markup
on lines 602 - 638.
I spent some nice hours to find that out, I think it really should be a
documented feature.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51569&edit=1