From:             [EMAIL PROTECTED]
Operating system: linux
PHP version:      4.1.2
PHP Bug Type:     Scripting Engine problem
Bug description:  periods in path-to-included-file are removed

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 bug report at http://bugs.php.net/?id=17177&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17177&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17177&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17177&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17177&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17177&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17177&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17177&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17177&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17177&r=globals

Reply via email to