This is my 1st suggestion to the internals :)
Anywho, there has been some discussion in the is_dir() comments on
php.net (http://is.php.net/manual/en/function.is-dir.php) about a
function that returns bool if a directory is empty or not.
Just throwing it out there if it should be implemented to the current
list of Directory Functions.
$dir = dir("/foo/bar");
var_dump($dir->empty()); // bool(true)
Ólafur Waage
[email protected]
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php