ZF-2701: Zend_Loader::isReadable triggers E_WARNING with user defined helper paths
Description
When using something like
$this->view = new Zend_View(); $this->view->addHelperPath('application/views/helpers/', 'My_View_Helper');
Then whenever the autoloader looks for a Zend_View_Helper_* it will throw an E_WARNING
Warning: fopen(application/views/helpers/Url.php) [function.fopen]: failed to open stream: No such file or directory
This happens because Zend_View_Abstract::_loadClass() goes over all helper paths, starting with the user defined ones, and for each calls Zend_Loader::isReadable(), which tries to open the non-existing helper in the user defined helper path
Comments
Posted by Wil Sinclair (wil) on 2008-03-31T16:07:17.000+0000
Please evaluate and assign as necessary.
Posted by old of Satoru Yoshida (yoshida@zend.co.jp) on 2008-04-23T10:42:44.000+0000
Resolved by ZF-2985 (SVN r9295)
Posted by old of Satoru Yoshida (yoshida@zend.co.jp) on 2008-05-14T07:19:56.000+0000
I believe it is resolved by re-fixing ZF-2985