Bug #52845 [NEW]: Documentation wrong re includes with relative paths
| From: | mail_ben_schmidt at yahoo dot com dot au | Date: | Wed, 15 Sep 2010 00:09:28 +0000 |
| Subject: | Bug #52845 [NEW]: Documentation wrong re includes with relative paths | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-5031@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Bug
Bug description:Documentation wrong re includes with relative paths
Description:
------------
The documentation about how relative includes work must be wrong. It states
that the include path is not checked when any kind of path (relative or
absolute) is given.
Note also the deficiency noted in bug #51569, also related to poor
documentation of how the include path/include statement works.
Test script:
---------------
include('PHPUnit/Framework.php');
Expected result:
----------------
According to the documentation, I expect a warning about non-existent file
PHPUnit/Framework.php, as this doesn't exist relative to the cwd or the
directory of the script, but somewhere inside PEAR's repository (referenced
in the include path).
Actual result:
--------------
The file is successfully found and included.
--
Edit bug report at http://bugs.php.net/bug.php?id=52845&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52845&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52845&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52845&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=52845&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52845&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=52845&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=52845&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=52845&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=52845&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=52845&r=support
Expected behavior: http://bugs.php.net/fix.php?id=52845&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=52845&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=52845&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=52845&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52845&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52845&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=52845&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=52845&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=52845&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=52845&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=52845&r=mysqlcfg