note 52357 deleted from function.rmdir by nlopess

From: Date: Sun, 01 May 2005 08:26:08 +0000
Subject: note 52357 deleted from function.rmdir by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-88824@lists.php.net to get a copy of this message
Note Submitter: skware (shift2) gmail dot com ---- note the readdir loop fails too early if there is a directory named '0'. Accordingly the correct check should be while (false != ($entry = readdir($dir))) {

« previous php.notes (#88824) next »