Use SPL when searching/listing files.
The SPL provides some nice iterators for (recursively) working through directories, there even is a way to nicely implement a !DirectoryIterator variant that omits . and .. automagically.
This would provide a nice way to replace custom opendir-read-check-for-dot.
Updated by Robert Lemke almost 15 years ago
Where do you want to use the DirectoryIterator where it is not used yet?
The Package Manager has a custom check for "." because it also wants to omit hidden files.