Issue Details (XML | Word | Printable)

Key: ZF-6016
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Matthew Weier O'Phinney
Reporter: Nathan Gardner
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Zend Framework

Zend_* ignoring my Zend_Loader::registerAutoload()

Created: 12/Mar/09 10:06 PM   Updated: 14/May/09 05:43 AM   Resolved: 14/May/09 05:43 AM
Return to search "Fixed in 1.5.1"
Component/s: None
Affects Version/s: 1.7.6
Fix Version/s: 1.8.2

Time Tracking:
Not Specified


 Description  « Hide

In the Zend_Db_Table_Row_Abstract->findParentRow method it tries to include the $parentClass by directly calling Zend_Loader::loadClass($parentTable). I would expect it to use My_Loader as I set it with Zend_Loader::registerAutoload('My_Loader'). If we're adding stuff to the __autoload stack, we should be using it.

I would propose wrapping it in a if(!class_exists($parentClass,true)) which will autoload it based on the __autoload stack as expected.

Im Zend_Loader::loadClass() is being called all over the place without first checking the __autoload stack.



Matthew Weier O'Phinney added a comment - 14/May/09 05:43 AM

Resolved in trunk and 1.8 release branch.