PHP 4.0 Bug #8088: is_file() not working properly

From: Date: Sun, 03 Dec 2000 19:29:24 +0000
Subject: PHP 4.0 Bug #8088: is_file() not working properly
Groups: php.dev 
Request: Send a blank email to php-dev+get-39918@lists.php.net to get a copy of this message
From: claus-bernth@sports-mc.dk Operating system: win95 PHP version: 4.0.3pl1 PHP Bug Type: Filesystem function related Bug description: is_file() not working properly Description script: <? $image = 'gfx/test.jpg'; // existing file if (is_file($image)) { // check file, returns true... echo $res; // '1' is printed... } $image = 'gfx/test.jp'; // non-existing file if (is_file($image)) { // check file => PHP error echo $res; // now PHP prints: } ?> "Stat failed in line 8 in module <modulename>..." ---- Compilation: Standard win32 installation file! PHP.ini file nonstandard settings: safe_mode=on end of bug report, Claus Bernth -- Edit Bug report at: http://bugs.php.net/?id=8088&edit=1

« previous php.dev (#39918) next »