ID: 8088 Comment by: akk at yakk dot org Reported By: claus-bernth at sports-mc dot dk Status: Closed Bug Type: Filesystem function related Operating System: win95 PHP Version: 4.0.3pl1 New Comment:
is_file is returning true for directories.. Previous Comments: ------------------------------------------------------------------------ [2000-12-07 13:16:31] [EMAIL PROTECTED] unable to reproduce ------------------------------------------------------------------------ [2000-12-03 14:49:25] claus-bernth at sports-mc dot dk After shutting down apache, installing PHP3, running the script (without error), php4 was reinstalled; rerunning the script now did not reproduce the error... Will fill in more information if I get any! ------------------------------------------------------------------------ [2000-12-03 14:29:24] claus-bernth at sports-mc dot dk 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 this bug report at http://bugs.php.net/?id=8088&edit=1