#37266 [Opn->Bgs]: scandir() triggers double warning
| From: | iliaa@php.net | Date: | Tue, 02 May 2006 13:34:28 +0000 |
| Subject: | #37266 [Opn->Bgs]: scandir() triggers double warning | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-96476@lists.php.net to get a copy of this message | ||
ID: 37266
Updated by: iliaa@php.net
Reported By: crescentfreshpot at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: Directory function related
Operating System: Win XP
PHP Version: 5.1.3RC2
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
One is a PHP error another is a system error relayed by PHP.
Previous Comments:
------------------------------------------------------------------------
[2006-05-01 17:21:07] crescentfreshpot at yahoo dot com
Description:
------------
scandir() triggers two warnings on failure.
(the first might be triggered in /main/streams/streams.c somewhere
around line 1722, the second in /ext/standard/dir.c on line 487)
Reproduce code:
---------------
<?php
error_reporting(E_ALL);
scandir('foo');
?>
Expected result:
----------------
Warning: scandir(foo): failed to open dir: Invalid argument in xxx on
line 3
Actual result:
--------------
Warning: scandir(foo): failed to open dir: Invalid argument in xxx on
line 3
Warning: scandir(): (errno 22): Invalid argument in xxx on line 3
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37266&edit=1