Issues

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

Fixed in trunk and 1.11 release branch; thanks for the report!