ZF-10546: Zend_Loader_Autoloader::_getAvailableVersions() foreach on glob() without checking for null
Description
562: $dirs = glob("$path/*", GLOB_ONLYDIR); 563: foreach ($dirs as $dir) {
On some systems (for example with open_basedir) glob() might return NULL instead of empty array. $dirs needs to be checked before calling foreach, or return from glob() casted to (array).
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2010-10-19T09:10:10.000+0000
Fixed in trunk and 1.11 release branch; thanks for the report!