PHP 4.0 Bug #8088 Updated: is_file() not working properly
| From: | dbeu@php.net | Date: | Thu, 07 Dec 2000 18:16:31 +0000 |
| Subject: | PHP 4.0 Bug #8088 Updated: is_file() not working properly | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-40485@lists.php.net to get a copy of this message | ||
ID: 8088
Updated by: dbeu
Reported By: claus-bernth@sports-mc.dk
Status: Closed
Bug Type: Filesystem function related
Assigned To:
Comments:
unable to reproduce
Previous Comments:
---------------------------------------------------------------------------
[2000-12-03 14:49:25] claus-bernth@sports-mc.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@sports-mc.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
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8088