I have the same problem running Win98, Apache 1.3.17 and PHP 4.0.6 as an
Apache Module. It doesn't return the source, but it's strange...
-----Original Message-----
From: Anthony Lieuallen [mailto:[EMAIL PROTECTED]]
Sent: 22 July 2001 16:30
To: [EMAIL PROTECTED]
Subject: [PHP] Potential bug?
I've just discovered a weird quirk in PHP. I'd first like to check if it is
a known bug/weird feature/something else already known. I've not yet tested
it much, except I see it doesn't happen on every script, but either of the
two results are quite strange to me.
Suituation: file myscript.php exists, directory myscript/ does not. If I
browse to http://myhost/myscript.php all is well. But
http://myhost/myscript/ does return something, where I expect a '404 not
found'. Sometimes it just returns myscript.php. BUT sometimes it returns
the PHP source (minus PHP comments). Aslo,
http://myhost/myscript/anything/anything/bla.bla.bla returns the same.
I was running PHP 4.0.4pl1 on RedHat Linux 6.2, kernel 2.4.6. I upgraded to
PHP 4.0.6 and still see this behavior.
P.S. For the curious I discovered this because a personal site I have uses
directory/admin.php for site admin, while another site I am developing at
work uses directory/admin/ and I typed the wrong one at home :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]