Zend Framework

Zend_* ignoring my Zend_Loader::registerAutoload()

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.7.6
  • Fix Version/s: 1.8.2
  • Component/s: None
  • Labels:
    None

Description

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.

Activity

Hide
Matthew Weier O'Phinney added a comment -

Resolved in trunk and 1.8 release branch.

Show
Matthew Weier O'Phinney added a comment - Resolved in trunk and 1.8 release branch.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: