ZF-3037: Zend_Db_Table_Rowset_Abstract loading classes with @

Issue Type: Bug Created: 2008-04-03T12:38:54.000+0000 Last Updated: 2008-05-08T08:27:18.000+0000 Status: Resolved Fix version(s): Reporter: Giorgio Sironi (giorgiosironi) Assignee: Darby Felton (darby) Tags: - Zend_Db_Table

Related issues: - ZF-2724



I noticed Zend_Db_Table_Abstract and also Zend_Db_Table_Rowset_Abstract use the static method Zend_Loader::loadClass() with an @ to suppress errors, in particular to load developer defined classes which inherit from Zend_Db_Table_Row & co. If an error is found in the class definition, the script will stop without outputting anything and this could make hard for the developer to find, for instance, a simple parse error. In my case I had to add single echo calls in Zend files to find out the point where the script halts. I don't know why the @ is there, but I think it's a best practise to raise an exception from the loadClass() method if necessary.


Posted by Wil Sinclair (wil) on 2008-04-18T13:20:28.000+0000

Please evaluate and categorize as necessary.

Posted by old of Satoru Yoshida ( on 2008-04-23T10:57:05.000+0000

I resolved ZF-2985 today. Please tell me if ZF-2985 causes something wrong.

Posted by Darby Felton (darby) on 2008-05-08T08:27:18.000+0000

Resolved as duplicate of ZF-2724.

Have you found an issue?

See the Overview section for more details.


© 2006-2020 by Zend by Perforce. Made with by awesome contributors.

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