#40164 [Opn->Bgs]: filetype() generates wrong error message type
| From: | tony2001@php.net | Date: | Fri, 19 Jan 2007 10:04:24 +0000 |
| Subject: | #40164 [Opn->Bgs]: filetype() generates wrong error message type | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-107754@lists.php.net to get a copy of this message | ||
ID: 40164
Updated by: tony2001@php.net
Reported By: pcdinh at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Compile Warning
Operating System: Windows
PHP Version: 5.2.0
New Comment:
The manual says of another one possible error message.
This error message is "Unknown file type (..)" and it's indeed
E_NOTICE.
Previous Comments:
------------------------------------------------------------------------
[2007-01-19 09:44:57] pcdinh at gmail dot com
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 this bug report at http://bugs.php.net/?id=40164&edit=1