Issues

ZF-2259: Dispatcher does not pass boolean false second parameter to class_exists() calls

Issue Type: Bug Created: 2007-12-03T16:52:41.000+0000 Last Updated: 2008-02-26T12:56:01.000+0000 Status: Resolved Fix version(s): - 1.0.4 (26/Feb/08)

Reporter: Matthew Weier O'Phinney (matthew) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Controller

Related issues: Attachments:

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:

<pre class="highlight">
function __autoload($class)
{
    Zend_Loader::loadClass($class);
}

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

<pre class="highlight">
Zend_Loader::registerAutoload();

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

Comments

Posted by Matthew Weier O'Phinney (matthew) on 2007-12-03T16:53:42.000+0000

Committed to release branch with r7028

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