ID: 46801 User updated by: tomas at matfyz dot cz Reported By: tomas at matfyz dot cz -Status: Feedback +Status: Open Bug Type: *General Issues Operating System: Linux PHP Version: 5.2.0 New Comment:
I'm sorry, I don't have access to newer version of PHP, I'm not a PHP developer. I can use only what my webhosting provider has, which is only older stable versions. But if you provide me with FTP access to some of your testing servers, I can test it. Previous Comments: ------------------------------------------------------------------------ [2008-12-08 22:27:38] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2008-12-08 20:40:15] tomas at matfyz dot cz Note that I would appreciate the behaviour described in the documentation. It seems more logical and more useful than the current behaviour, because there is a risk that local file will override the internal file in the 'include/' dir! The libraries (in this case the sources under 'include/' dir) are compact sets of sources which include themselves and of course do not take into account the files in the user's dir. ------------------------------------------------------------------------ [2008-12-08 19:57:23] tomas at matfyz dot cz I can't help it, the link is being wrapped by this website, you must re-construct it. ------------------------------------------------------------------------ [2008-12-08 19:56:12] tomas at matfyz dot cz Sorry, the correct link is http://artax.karlin.mff.cuni.cz/~ttel5535/obs/pok_require_dirs3/report/www/use.php ------------------------------------------------------------------------ [2008-12-08 19:50:54] tomas at matfyz dot cz Description: ------------ In the documentation (http://cz.php.net/manual/en/function.include.php) is the following statement: "... E.g. if your include_path is libraries, current working directory is /www/, you included include/a.php and there is include "b.php" in that file, b.php is first looked in /www/libraries/ and then in /www/include/. ..." This is not true. There is either a bug in the documentation or in the PHP. Tested on 5.2.0-8+etch11. Reproduce code: --------------- Please see http://artax.karlin.mff.cuni.cz/~ttel5535/obs/pok_require_dirs3/report/www/use.php . The source code is in multiple directories, you can download it from there. Expected result: ---------------- www/include/a.php: fun_a() www/include/b.php: fun_b() Actual result: -------------- www/include/a.php: fun_a() www/b.php: fun_b() According to the documentation, the file www/include/b.php should be included! ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46801&edit=1