From:             [EMAIL PROTECTED]
Operating system: Win 95
PHP version:      4.0.5
PHP Bug Type:     Any
Bug description:  file_exists doesn't work properly with variables

The following won't work in Win95:

if(file_exists($path)) {print "file $path exists"}

This will report a file existing even though it doesn't. You might think
that this is because we are using forwardslashes in windows BUT IF you then
parse $path to replace the forwardslashes with backslashes (using a regular
expression) it still doesn't work. BUT if you do this:
(leaving $path with forward slashes) it does work properly.

I suppose this is a bug?
Edit bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to