ID: 37266 Updated by: [EMAIL PROTECTED] 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