Zend Framework

Missing require_once before throw exceptions in Zend_Loader_PluginLoader.

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: Next Major Release
  • Fix Version/s: 1.7.0
  • Component/s: Zend_Loader
  • Labels:
    None

Description

Class Zend_Loader_PluginLoader.
Missing require_once in lines 220-222:

if ($pos === null) {
    throw new Zend_Loader_PluginLoader_Exception('Prefix ' . $prefix . ' / Path ' . $path . ' was not found in the PluginLoader.');
}

and lines 315-317:

if (!class_exists($className, false)) {
    throw new Zend_Loader_PluginLoader_Exception('File ' . $classFile . ' was loaded but class named ' . $className . ' was not found within it.');
}

This implies autoload feature, but many peoples do not has it.

Activity

Hide
Amr Mostafa added a comment -

I had the same problem. I don't think it's assuming autoload feature though, as it uses require_once normally through the rest of the file, so this is clearly a missing require_once.

Show
Amr Mostafa added a comment - I had the same problem. I don't think it's assuming autoload feature though, as it uses require_once normally through the rest of the file, so this is clearly a missing require_once.
Hide
Benjamin Eberlei added a comment -

This has magically been fixed. Probably by matthew.

Show
Benjamin Eberlei added a comment - This has magically been fixed. Probably by matthew.
Hide
Wil Sinclair added a comment -

Changing issues in preparation for the 1.7.0 release.

Show
Wil Sinclair added a comment - Changing issues in preparation for the 1.7.0 release.
Hide
Ota Mares added a comment -

Is this simple bug already fixed?

Show
Ota Mares added a comment - Is this simple bug already fixed?
Hide
Ota Mares added a comment -

Duh, posted in the wrong issue. Yay me!

Show
Ota Mares added a comment - Duh, posted in the wrong issue. Yay me!

People

Vote (3)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
1h
Original Estimate - 1 hour
Remaining:
1h
Remaining Estimate - 1 hour
Logged:
Not Specified
Time Spent - Not Specified