ZF-2701: Zend_Loader::isReadable triggers E_WARNING with user defined helper paths

Issue Type: Bug Created: 2008-02-21T08:15:26.000+0000 Last Updated: 2012-03-26T08:29:20.000+0000 Status: Resolved Fix version(s): - 1.5.2 (15/May/08)

Reporter: Eddo Rotman (karnaf) Assignee: Satoru Yoshida (satoruyoshida) Tags: - Zend_Loader

Related issues: - ZF-2724



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


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 ( on 2008-04-23T10:42:44.000+0000

Resolved by ZF-2985 (SVN r9295)

Posted by old of Satoru Yoshida ( on 2008-05-14T07:19:56.000+0000

I believe it is resolved by re-fixing ZF-2985

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.