Zend Framework

Zend_Loader::isReadable triggers E_WARNING with user defined helper paths

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.0.3
  • Fix Version/s: 1.5.2
  • Component/s: Zend_Loader
  • Labels:
    None

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) [<a href='function.fopen'>function.fopen</a>]: 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

Issue Links

Activity

Hide
Wil Sinclair added a comment -

Please evaluate and assign as necessary.

Show
Wil Sinclair added a comment - Please evaluate and assign as necessary.
Hide
Satoru Yoshida added a comment -

Resolved by ZF-2985 (SVN r9295)

Show
Satoru Yoshida added a comment - Resolved by ZF-2985 (SVN r9295)
Hide
Satoru Yoshida added a comment -

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

Show
Satoru Yoshida added a comment - I believe it is resolved by re-fixing ZF-2985

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: