Zend Framework

Docs and code don't match - autoloader warning suppression

Details

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

Description

Copy paste from article on devzone:
Allow toggling error suppression. We feel – and the greater PHP community does as well – that error suppression is a bad idea. It's expensive, and it masks very real application problems. So, by default, we want it off. However, if a developer insists that it be on, we should allow toggling it on.

Copy paste from docs:
By default, Zend_Loader_Autoloader does no error suppression when using its internal autoloader, which utilizes Zend_Loader::loadClass(). Most of the time, this is exactly what you want. However, there may be cases where you want to suppress them. You can do this using suppressNotFoundWarnings():

Autoloader.php line 78.
protected $_suppressNotFoundWarnings = true;

Issue Links

Activity

Hide
Matthew Weier O'Phinney added a comment -

Thank you for the report; I'm already aware of the issue and have it marked as a todo for 1.8.1.

Show
Matthew Weier O'Phinney added a comment - Thank you for the report; I'm already aware of the issue and have it marked as a todo for 1.8.1.
Hide
Matthew Weier O'Phinney added a comment -

Suppression is now disabled by default in trunk and 1.8 release branch

Show
Matthew Weier O'Phinney added a comment - Suppression is now disabled by default in trunk and 1.8 release branch

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: