Anyone?
Does this deserve reopening the issue and marking it as unresolved?

Jack Sleight wrote:
Hi,
This issue was resolved in 1.5.0: http://framework.zend.com/issues/browse/ZF-2463, which resulted in the error suppression on the include_once on line 83 being removed. However, this causes PHP warnings when a file doesn't exist. This is a problem when using autoload, because autoload functions are not required to successfully include the file, they should simply attempt to include it if they can. No errors should occur if the file cannot be found.

Line 83 should really be changed to:

if (self::isReadable($file)) {
   include_once $file;
}

The current method effectively makes it impossible to simply check if a class exists, using autoload where required.

--
Jack

Reply via email to