|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-05-02 13:34 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 10:00:01 2025 UTC |
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