Re: Bug #2125 Updated: function dir, readdir does not list files/dirs named "0" (zero))

From: Date: Mon, 23 Aug 1999 21:08:39 +0000
Subject: Re: Bug #2125 Updated: function dir, readdir does not list files/dirs named "0" (zero))
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-10136@lists.php.net to get a copy of this message
Thanks a lot. Appreciated ! Bug Database wrote: > > ID: 2125 > Updated by: rasmus > Reported By: ivelin@iname.com > Status: Closed > Bug Type: Other > Assigned To: > Comments: > > Not really a bug. Your while loop evaluates to while(0). If you change it > to this: > > while(strlen(readdir($dh)) > > it should work fine. > > Full Bug description available at: http://bugs.php.net/?id=2125 -- ----------------------------------------------------------------------------------- Play The Net Generation Game @ http://www.VirtualCombat.com ----------------------------------------------------------------------------------- Obtain Root Digital Certificate from: http://www.caserver.com -----------------------------------------------------------------------------------

« previous php.dev (#10136) next »