RE: [PHP-DEV] error handling
| From: | John Coggeshall | Date: | Mon, 18 Nov 2002 13:23:02 +0000 |
| Subject: | RE: [PHP-DEV] error handling | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-91265@lists.php.net to get a copy of this message | ||
>hmm, I really thought we didn't have one, as it doesn't make sense at
>all :)
Ha! I'm not crazy! :)
>>Having a solid way to
>> gracefully bow-out because my cat managed to open, fill with
>junk, and
>> save a critical include file would just be nice. The choice between
>> the blank screen, or a nasty error message isn't a good one... I'd
>> personally love to have a "sorry, our site is hosed" error
>page... If
>> for nothing else then piece of mind...
>
>Your cat knows your passwords? :) Anyway, you can always use the
>error_append_string and error_prepend_string for this. (by
>putting <!--
>in prepend_string and --> in append string for example).
Not true. All I've done in that case is display a half-completed page
And hide the fact it died in a comment. Not to mention that doesn't
allow
For any sort of e-mailing me to let me know my cat hacked my account
again
(she's a smart little bugger). I guess I just really do believe that
PHP's
Error handling mechanism has little real use in its current form. There
are
Better methods of dealing with logic-errors than using trigger_error()
if
The only thing they are good for is logic-errors... However, If I could
handle
Every single error that didn't cause some catastrophe seg-fault I feel
that
It would add a nice capability to the language.
Hence, I am still standing by my re-direct (with GET parameters for the
nature
Of the error :)) suggestion :)
John
(and his cat)