ZF-2259: Dispatcher does not pass boolean false second parameter to class_exists() calls
Description
In the latest iteration of Zend_Controller_Dispatcher_Standard, there are three calls to class_exists() that do not pass a second boolean false parameter to class_exists() in order to suppress autoloading. As a result, the following __autoload() implementation causes PHP errors:
function __autoload($class)
{
Zend_Loader::loadClass($class);
}
Note, however, that using spl_autoload does work without error:
Zend_Loader::registerAutoload();
The fix is to patch Zend_Controller_Dispatcher_Standard to pass false as a second parameter to class_exists().
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2007-12-03T16:53:42.000+0000
Committed to release branch with r7028