Hi! > * If users do not expect exceptions in the core, they are mistaken. There > are indeed exceptions in the core. See ZEND_FE_RESET and > zend_interfaces.c. Of course, no evidence has been provided one way or > another.
This is not right either, but that was done in 2005. We're now in 2012 and trying to make PHP a bit more orderly. > * In fact, if there is a unifying theme in the usage of exceptions in PHP, > is that exceptions are used when OOP interfaces are involved (see Zend > interfaces, SPL, DateTime and PDO -- though optional there). The core vs. > non-core argument only looks attractive because there are few built-in > classes in the core. That's not my argument. My argument is when you instantiate some class explicitly and work with it, you know you're dealing with certain API that may include exceptions. When you're using foreach(), you don't expect to wrap each foreach() into a try-catch block. But that's what is happening here. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php