ZF-6536: Docs and code don't match - autoloader warning suppression
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