Details
Description
To reproduce this bug install the zf from zfcampus.org by using pear installer.
Then just run a zf command which is the cause of tons of warnings.
Warnings is generated by include_once function in Zend_Tool_Framework_Loader_Abstract::load method when it tries to include all the files it find in include_path.
To avoid this problems: just set @ before the include_once function, but probably framework developers should pay more attention to this problems.
Affected code fragment with fixed error:
// loop through files and find the classes declared by loading the file foreach ($this->_retrievedFiles as $file) { $classesLoadedBefore = get_declared_classes(); $oldLevel = error_reporting(E_ALL | ~E_STRICT); // remove strict so that other packages wont throw warnings // should we lint the files here? i think so @ include_once $file; error_reporting($oldLevel); // restore old error level $classesLoadedAfter = get_declared_classes(); $loadedClasses = array_merge($loadedClasses, array_diff($classesLoadedAfter, $classesLoadedBefore)); }
Can you provide the warnings produced in a comment here?
Thanks, Ralph