EvanDotPro/zf2 — comment on commit 9acc50b4d7d1515d0b15742dd8e507db1be0a253
File:  line 0
By marc-mabe:

On simply reading this line I see much more problems with it:
php.net/Note: On some systems it is impossible to distinguish between empty match and an error.
php.net/Note: The GLOB_BRACE flag is not available on some non GNU systems, like Solaris.

Also why not using GlobIterator, my tests shows that it is as fast as the glob function but don't allocates so much memory because it's not storing the full result set into an array.