From: pcdinh at gmail dot com
Operating system: Windows
PHP version: 5.2.0
PHP Bug Type: Compile Warning
Bug description: filetype() generates wrong error message type
Description:
------------
The PHP Manual said: filetype() will also produce an E_NOTICE message if
the stat call fails or if the file type is unknown.
However, in fact, with PHP 5.2.0, Windows Xp Sp2, a E_WARNING message is
returned:
Warning: filetype() [function.filetype]: Lstat failed for W:/ in
D:\wvbsrc\mailing\demos\lib\core\WVB\View\Drivers\WVB_View_Standard.php on
line 73
Reproduce code:
---------------
if (filetype('W:/') === false)
{
echo "Hello";
}
Expected result:
----------------
Notice: filetype() [function.filetype]: Lstat failed for W:/ in
D:\wvbsrc\mailing\demos\lib\core\WVB\View\Drivers\WVB_View_Standard.php on
line 73
Actual result:
--------------
Warning: filetype() [function.filetype]: Lstat failed for W:/ in
D:\wvbsrc\mailing\demos\lib\core\WVB\View\Drivers\WVB_View_Standard.php on
line 73
--
Edit bug report at http://bugs.php.net/?id=40164&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=40164&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=40164&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=40164&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40164&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=40164&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40164&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40164&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40164&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40164&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40164&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=40164&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=40164&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40164&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40164&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40164&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40164&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40164&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40164&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40164&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40164&r=mysqlcfg