I much prefer to do error handling with exception semantics, opposed to checking function return values and error codes. I want to set my own php error handler function, which converts all native php errors into thrown exceptions.
But, I'm a bit scared to do this with code that wasn't written with this in mind, which is probably the majority of php code. It's a huge difference in program control flow to do this, and I fear I might break the zf2 code by doing so. I know exceptions are used extensively throughout the zf2 code base, but, I'm not sure it was written with the anticipation that native php functions would throw exceptions. Is it common to do this in zend 2? Have people had a good experience with it? ps - I'm also using the BjyAuthorize module. Thanks! -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/converting-errors-to-exceptions-tp4662313.html Sent from the Zend Framework mailing list archive at Nabble.com. -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
