ZF-5697: Zend_Loader::loadclass fails silently if syntax errors in file.

Issue Type: Bug Created: 2009-02-05T06:23:29.000+0000 Last Updated: 2010-01-08T06:38:41.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Mark (lightflowmark) Assignee: None Tags: - Zend_Loader

Related issues: - ZF-2463



I'm finding that Zend Framework fails silently somehow when I have a syntax error in my model files. Specifically (although I don't think this is relevant), in my classes extending Zend_Db_Table_Row_Abstract.

I think I've tracked this down to Zend_Loader::loadclass.

I find that my PHPUnit tests crash (i.e. back to command prompt with no errors), my webpages are returned blank (with no errors), and there's nothing in the logs I've got all errors being reported.

It makes life a little tricky when debugging sometimes!


Posted by Mark (lightflowmark) on 2009-02-05T06:29:26.000+0000

Sorry about that! Issue duplicated and apparently fixed in 1.8.

Posted by Matthew Weier O'Phinney (matthew) on 2010-01-08T06:38:09.000+0000

This has been resolved since 1.8. Zend_Loader::loadClass() no longer uses a suppression operator prior to the include() call, allowing parse errors to be reported.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.