#17177 [Opn->Bgs]: periods in path-to-included-file are removed

From: Date: Mon, 19 Aug 2002 18:29:20 +0000
Subject: #17177 [Opn->Bgs]: periods in path-to-included-file are removed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17218@lists.php.net to get a copy of this message
ID: 17177 Updated by: iliaa@php.net Reported By: janfolkert@movenext.nl -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: linux PHP Version: 4.1.2 New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Previous Comments: ------------------------------------------------------------------------ [2002-05-13 08:54:46] janfolkert@movenext.nl For some reason, when i require a file with an absolute path that has multiple periods in it, the periods WILL be removed from the path-to-the-included-file. example: --------------------------- $_maindir = "/path/to.an.includedir/files/"; require($_maindir."includefile.inc"); --------------------------- the result will be: --------------------------- Fatal error: Failed opening required '/path/toanincludedir/files/includefile.inc' (include_path='.:/usr/share/pear') in /path/to.an.includedir/files/index.php on line 3 --------------------------- What's the deal here? seems kinda annoying when having an isp with multiple virtual hosts, and wanting to use the complete website address in the path to the files. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17177&edit=1

« previous php.bugs (#17218) next »