Been talking to Marcus Boerger, via email, about the PHP 5 Standard Library article and need to confess ;)
Marcus makes a very good point about the DirectoryReader example I used;
Your DirectoryReader is wrong. It does the non file skipping in valid, but it should be ...