Bug #52847 [NEW]: Files to include are always searched for in current directory
| From: | mail_ben_schmidt at yahoo dot com dot au | Date: | Wed, 15 Sep 2010 01:26:05 +0000 |
| Subject: | Bug #52847 [NEW]: Files to include are always searched for in current directory | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-5035@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Bug
Bug description:Files to include are always searched for in current directory
Description:
------------
The documentation at include and include_path suggests that the current
directory will not be searched if a '.' is not in include path. Even though
I can see no reason (e.g. in the source code referred to by bug #51569)
that the current directory should be searched, it can be demonstrated that
it is.
See also bug #51569 and bug #52845 for further include_path documentation
deficiencies.
Test script:
---------------
1. Place in a file 'test/test.php':
set_include_path('/bin'); // won't find any php files here!
include('another.php');
2. touch another.php
3. php test/test.php
Expected result:
----------------
Warning that another.php cannot be found.
Actual result:
--------------
No warning.
N.B. In line with the undocumented feature mentioned in bug #51569, if
another.php is moved to test/another.php, it is still found also, because
it is in the directory of the running script.
--
Edit bug report at http://bugs.php.net/bug.php?id=52847&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52847&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52847&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52847&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=52847&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52847&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=52847&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=52847&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=52847&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=52847&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=52847&r=support
Expected behavior: http://bugs.php.net/fix.php?id=52847&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=52847&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=52847&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=52847&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52847&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52847&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=52847&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=52847&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=52847&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=52847&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=52847&r=mysqlcfg