ZF-7501: Path with // in the end of autoload method of Zend_Loader_Autoloader_Resource.
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
Comments
Posted by Brenton Alker (brenton) on 2009-09-17T07:00:47.000+0000
Patch to match remove double // from generated path
Posted by Pádraic Brady (padraic) on 2009-09-17T08:07:42.000+0000
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.