Bug #1236 Updated: readdir fails if directory contains a file named

From: Date: Tue, 16 Mar 1999 05:34:50 +0000
Subject: Bug #1236 Updated: readdir fails if directory contains a file named
Groups: php.dev 
Request: Send a blank email to php-dev+get-4640@lists.php.net to get a copy of this message
ID: 1236 Updated by: rasmus Reported By: svd@excitecorp.com Status: Closed Bug Type: Misbehaving function Assigned To: Comments: No bug here. You just need to check the return value correctly. For example, a loop like this works fine: while (($file = readdir($handle))!=false) { echo "$file\n"; } Full Bug description available at: http://ca.php.net/bugs.php3?id=1236 -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4640) next »