Issues

ZF-6536: Docs and code don't match - autoloader warning suppression

Issue Type: Bug Created: 2009-05-05T04:01:36.000+0000 Last Updated: 2009-05-10T20:29:22.000+0000 Status: Resolved Fix version(s): - 1.8.1 (12/May/09)

Reporter: Janez Novak (shadow80k) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Loader

Related issues: - ZF-6592

Attachments:

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;

Comments

Posted by Matthew Weier O'Phinney (matthew) on 2009-05-05T06:07:21.000+0000

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

Posted by Matthew Weier O'Phinney (matthew) on 2009-05-10T20:29:21.000+0000

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

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts