Zend Framework

Dispatcher does not pass boolean false second parameter to class_exists() calls

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0.3
  • Fix Version/s: 1.0.4
  • Component/s: Zend_Controller
  • Labels:
    None
  • Fix Version Priority:
    Must Have

Description

In the latest iteration of Zend_Controller_Dispatcher_Standard, there are three calls to class_exists() that do not pass a second boolean false parameter to class_exists() in order to suppress autoloading. As a result, the following __autoload() implementation causes PHP errors:

function __autoload($class)
{
    Zend_Loader::loadClass($class);
}

Note, however, that using spl_autoload does work without error:

Zend_Loader::registerAutoload();

The fix is to patch Zend_Controller_Dispatcher_Standard to pass false as a second parameter to class_exists().

Activity

Hide
Matthew Weier O'Phinney added a comment -

Committed to release branch with r7028

Show
Matthew Weier O'Phinney added a comment - Committed to release branch with r7028

People

Vote (0)
Watch (0)

Dates

  • Due:
    Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
15m
Original Estimate - 15 minutes
Remaining:
15m
Remaining Estimate - 15 minutes
Logged:
Not Specified
Time Spent - Not Specified