Re: Exceptions and Errors
| From: | Marcus Boerger | Date: | Tue, 13 Apr 2004 20:33:19 +0000 |
| Subject: | Re: Exceptions and Errors | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-9120@lists.php.net to get a copy of this message | ||
Hello Derick,
Tuesday, April 13, 2004, 10:24:24 PM, you wrote:
> On Tue, 13 Apr 2004, Adam Maccabee Trachtenberg wrote:
>> On Tue, 13 Apr 2004, Marcus Boerger wrote:
>>
>> > This brings us back to an old problem the severity levels are inconsistent.
>> > And further more we decided some time back that E_ERRORs shouldn't be
>> > converted to exceptions because of a few E_ERRORs that might not be
>> > continuable. From my point of view we should do two things:
>> > 1) convert the non continuable E_ERRORs to a higher severity (if there are
>> > any at all)
>>
>> Is there a reason not to move non-continuable E_ERRORs to E_WARNINGs?
> Yes, as E_WARNINGs are supposed to be continuable in PHP, unlike
> E_ERROR.
You mean PHP 4 here. And that's the problem, in PHP 5 we have excpetions
that provide a way to handle most every E_ERROR more generous. The question
now is do we want to provide this to the user?
--
Best regards,
Marcus mailto:helly@php.net