#24408 [NEW]: misinterpretation (file as a folder/directory - without an error)

From: Date: Mon, 30 Jun 2003 14:40:18 +0000
Subject: #24408 [NEW]: misinterpretation (file as a folder/directory - without an error)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-42864@lists.php.net to get a copy of this message
From:             theo at sponholz dot de
Operating system: Linux 2.2.24-6.2.3
PHP version:      4.3.1
PHP Bug Type:     *Directory/Filesystem functions
Bug description:  misinterpretation (file as a folder/directory - without an error)

Description:
------------
the Apache/1.3.26 with php-mod misinterprets a file as a directory
for example:
http://www.sponholz.de/theo.php/
(there is no dir. "/theo.php/" under "http://www.sponholz.de/", just a
file "theo.php")

if you type "http://www.sponholz.de/theo.php" the site will
be shown
correctly. 

if you type "http://www.sponholz.de/theo.php/" (with an
ending [SLASH]),
then the server shows a site without CCS and pictures. Boths are included
relativ. 

further: 
you can add strings like:
"http://www.sponholz.de/theo.php/type.PHP.what.PHP.you/.want"
instead of returning an error
"http://www.sponholz.de/theo.php/"
will be shown.

my problem / wish:

i wanna get an error, when a file or a dir./folder does not exist. 

by the way (i tried this @ php.net, but the php.net-server refers to
google ...)
thx 4 help,
theo


-- 
Edit bug report at http://bugs.php.net/?id=24408&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24408&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24408&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24408&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24408&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24408&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24408&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24408&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24408&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24408&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24408&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24408&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24408&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24408&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24408&r=gnused



Thread (6 messages)

« previous php.bugs (#42864) next »