php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17177 periods in path-to-included-file are removed
Submitted: 2002-05-13 08:54 UTC Modified: 2002-08-19 14:29 UTC
From: janfolkert at movenext dot nl Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.1.2 OS: linux
Private report: No CVE-ID: None
 [2002-05-13 08:54 UTC] janfolkert at movenext dot 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-19 14:29 UTC] iliaa@php.net
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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Aug 16 23:00:02 2025 UTC