Issue Details (XML | Word | Printable)

Key: ZF-7002
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Jurrien Stutterheim
Reporter: Jurrien Stutterheim
Votes: 0
Watchers: 0
Operations

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

Zend_Application_Resource_Modules class_exists shouldn't try to load bootstrap class

Created: 12/Jun/09 07:28 PM   Updated: 24/Jun/09 08:48 PM   Resolved: 18/Jun/09 09:09 PM
Component/s: Zend_Application
Affects Version/s: 1.8.0, 1.8.1, 1.8.2
Fix Version/s: 1.8.4

Time Tracking:
Not Specified


 Description  « Hide

On line 71, Zend_Application_Resource_Modules checks if the bootstrap class for a specific module is loaded using class_exists. However, the second argument for class_exists isn't set to false. The result is that the autoloader will try to load the bootstrap class automatically. This is not desirable if you don't want to create a bootstrap class for your modules. Also, the resource seems to already be setup to try and load the class if it's not loaded already. Suggested fix:

Change:

if (!class_exists($bootstrapClass)) {

To:

if (!class_exists($bootstrapClass, false)) {


Jurrien Stutterheim added a comment - 18/Jun/09 09:09 PM

Resolved in r16155 and merged to release-1.8 in r16156


Miroslav Kubelik added a comment - 20/Jun/09 08:26 AM

I think this partially solves ZF-6658.

Maybe same problem with class_exists is in ZF-6672, can you please reassign and fix ZF-6672 also?


Chris Jones added a comment - 24/Jun/09 08:48 PM

This fixes ZF-6707 also.