Zend Framework

Path with // in the end of autoload method of Zend_Loader_Autoloader_Resource.

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.9.0
  • Fix Version/s: 1.9.3
  • Component/s: Zend_Loader
  • Labels:
    None

Description

I'm just learning Zend for 2 days but i think i found bug in the end of
autoload method of Zend_Loader_Autoloader_Resource.

Now it looks like this:

....
$final = substr($class, strlen($lastMatch));
$path = $this->_components[$lastMatch];
return include $path . '/' . str_replace('_', '/', $final) . '.php';
}

I think line with return should be like this:

return include $path . str_replace('_', '/', $final).'.php';

original line make '//' in path and file isn't include.

Check me please if i'm right.

Thanks Andy

Activity

Hide
Brenton Alker added a comment -

Patch to match remove double // from generated path

Show
Brenton Alker added a comment - Patch to match remove double // from generated path
Hide
Pádraic Brady added a comment -

Fixed in r18169 - component path was not being trimmed. Let me know if this does not, by chance, resolve your issue - the patch was a bit ambiguous compared to the issue description and comment.

Show
Pádraic Brady added a comment - Fixed in r18169 - component path was not being trimmed. Let me know if this does not, by chance, resolve your issue - the patch was a bit ambiguous compared to the issue description and comment.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: