Re: exceptions instead of errors
| From: | Andi Gutmans | Date: | Sun, 04 May 2003 02:32:18 +0000 |
| Subject: | Re: exceptions instead of errors | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-1202@lists.php.net to get a copy of this message | ||
At 02:53 AM 5/4/2003 +0200, Marcus Börger wrote:
Some help of the engine would be good: - automatically set EH_THROW mode at "try" - automatically set EH_NORMAL mode at "catch" (first outmost catch)Huh? I think it's definitely not obvious that I'd want these to happen automatically. Actually I personally wouldn't, because I'd prefer PHP to continue the way it works and only use exceptions in user-land.
If noone objects i will commit this on monday evening.Please don't before this is discussed. We have discussed this kind of thing quite a few times and our opinion was that error handling in PHP shouldn't be changed. We wouldn't want some configuration switch to change how the scripts work nor is it a good idea if the same script behaves differently according to one switch. Anyway, we can discuss this again but definitely I don't think we should jump the gun with commits in this area until people really think of the whole picture. We have a large user base out there and we still want all of the user-base to "talk" in the same language. I won't really be around for the next two weeks so maybe it's best to wait or in the least make sure Zeev takes part in this discussion. Thanks, Andi P.S. -BTW, what does SQLite do?