Issues

ZF-5268: Change in loader behavoir affects Zend_Db_Table's dependency on loadClass w/ Exception thrown

Issue Type: Bug Created: 2008-12-15T13:20:59.000+0000 Last Updated: 2009-05-14T05:47:07.000+0000 Status: Resolved Fix version(s): Reporter: Ralph Schindler (ralph) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Loader

Related issues: - ZF-6611

Attachments:

Description

Most immediately, one would expect that when a non-existent class is requested via loadClass() an exception is thrown, not an error.

We should evaluate the current failing/errored unit tests:

<pre class="highlight">
1) testTableRelationshipFindParentRowException(Zend_Db_Table_Relationships_Db2Test)
include(nonexistant\class.php): failed to open stream: No such file or directory
C:\Documents and Settings\Administrator\My Documents\ZendFramework\StandardTrunk\library\Zend\Loader.php:83
C:\Documents and Settings\Administrator\My Documents\ZendFramework\StandardTrunk\library\Zend\Loader.php:83
C:\Documents and Settings\Administrator\My Documents\ZendFramework\StandardTrunk\library\Zend\Db\Table\Row\Abstract.php:912

2) testTableRelationshipFindManyToManyRowsetException(Zend_Db_Table_Relationships_Db2Test)
include(nonexistant\class.php): failed to open stream: No such file or directory
C:\Documents and Settings\Administrator\My Documents\ZendFramework\StandardTrunk\library\Zend\Loader.php:83
C:\Documents and Settings\Administrator\My Documents\ZendFramework\StandardTrunk\library\Zend\Loader.php:83
C:\Documents and Settings\Administrator\My Documents\ZendFramework\StandardTrunk\library\Zend\Db\Table\Row\Abstract.php:984

3) testTableRelationshipFindDependentRowsetException(Zend_Db_Table_Relationships_Db2Test)
include(nonexistant\class.php): failed to open stream: No such file or directory
C:\Documents and Settings\Administrator\My Documents\ZendFramework\StandardTrunk\library\Zend\Loader.php:83
C:\Documents and Settings\Administrator\My Documents\ZendFramework\StandardTrunk\library\Zend\Loader.php:83
C:\Documents and Settings\Administrator\My Documents\ZendFramework\StandardTrunk\library\Zend\Db\Table\Row\Abstract.php:859

Comments

Posted by Matthew Weier O'Phinney (matthew) on 2009-05-14T05:47:07.000+0000

This appears to be resolved at this time.

Have you found an issue?

See the Overview section for more details.

Copyright

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

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

Contacts