note 56070 added to function.scandir

From: Date: Mon, 22 Aug 2005 18:00:10 +0000
Subject: note 56070 added to function.scandir
Groups: php.notes 
Request: Send a blank email to php-notes+get-94037@lists.php.net to get a copy of this message
If you can't figure out why you're getting (supposedly) no error, check to see if you're passing an empty string to it... <?php scandir(''); ?> Would produce: Warning: scandir() [function.scandir.php]: (errno 0): No error in C:\somedir\somefile.php on line 2 Thought I'd save somebody the hour-an-a-half that I spent wondering why there there was no error ;) ---- Manual Page -- http://www.php.net/manual/en/function.scandir.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+56070 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56070&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56070&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56070&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56070&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56070&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56070&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+56070&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#94037) next »