ID: 30437 Updated by: [EMAIL PROTECTED] Reported By: gabe at mudbuginfo dot com -Status: Open +Status: Bogus Bug Type: Documentation problem Operating System: linux 2.4.26 PHP Version: 4.3.9 New Comment:
Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. Documentation of bug #30881 covers also this one. Previous Comments: ------------------------------------------------------------------------ [2004-12-02 16:12:01] [EMAIL PROTECTED] Making it documentation problem then. ------------------------------------------------------------------------ [2004-12-02 16:07:30] gabe at mudbuginfo dot com Bug is different from 30881: This bug does not refer to the CLI SAPI, and refers to files from the include_path and not the current working directory. Prehaps the documentation should be updated to mention that when including a file in a parent directory (eg: '../blah.php'), paths within the include_path will not be searched. ------------------------------------------------------------------------ [2004-11-27 16:46:11] [EMAIL PROTECTED] Same as #30881, which is already documented. ------------------------------------------------------------------------ [2004-10-14 22:22:51] gabe at mudbuginfo dot com Easier test case: Say for example, your include path is: /usr/local/lib/ php (most people have this or something similar) <?php echo "including normal DB\n"; include 'DB.php'; echo "including ../php DB\n"; include '../php/DB.php'; ?> The second include statement will fail with: including normal DB including ../php DB Warning: main(../php/DB.php): failed to open stream: No such file or directory in /tmp/x.php on line 5 Warning: main(): Failed opening '../php/DB.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/ local/lib/mis:/usr/local/lib/eclipse') in /tmp/x.php on line 5 ------------------------------------------------------------------------ [2004-10-14 22:06:53] gabe at mudbuginfo dot com Note, open_basedir is not set anywhere for this site. ------------------------------------------------------------------------ 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/30437 -- Edit this bug report at http://bugs.php.net/?id=30437&edit=1