From:             [EMAIL PROTECTED]
Operating system: Slackware Linux
PHP version:      4.2.3
PHP Bug Type:     Filesystem function related
Bug description:  file_exists() doesn't return correct results

I upgraded my installation to Apache 2.0.43 (old was 2.0.36) and PHP 2.4.3
(old was 2.4.1), and noticed that my application doesn't work anymore. PHP
is compiled as module.

Finally, I found that file_exists() function doesn't work properly. My
test script:

<?php
        $e1 = file_exists("index.php");
        $e2 = is_file("index.php"); 
        echo "e1 = $e1; e2 = $e2";
?>

It's output:

e1 = ; e2 = 1

file_exists(".") always returns 1.

Nothing was changed in configuration after upgrade. I looked into source,
and found that code responsible for this functionality was significantly
changed, so... Perhaps this is a bug. Serious one.

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

Reply via email to