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
olaf...@gmail.com

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to