Bug #51569 [NEW]: Documentation of include missing fallback to calling script's cwd
| From: | privat at ni-po dot com | Date: | Fri, 16 Apr 2010 12:00:32 +0000 |
| Subject: | Bug #51569 [NEW]: Documentation of include missing fallback to calling script's cwd | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-4204@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: 5.3.2
Package: Documentation problem
Bug Type: Bug
Bug description:Documentation of include missing fallback to calling script's cwd
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 bug report at http://bugs.php.net/bug.php?id=51569&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51569&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51569&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51569&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=51569&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51569&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=51569&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=51569&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=51569&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=51569&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=51569&r=support
Expected behavior: http://bugs.php.net/fix.php?id=51569&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=51569&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=51569&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=51569&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51569&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51569&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=51569&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=51569&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=51569&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=51569&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=51569&r=mysqlcfg