Hi, On Mon, 2010-03-22 at 16:00 +0100, Olivier B. wrote: > well, maybe we should provide a better behaviour for all fatal errors, no ? > A frequent one I see is the fatal error for calls like "$obj->method()", > when $obj is not an object. > > Isn't possible to allow catching of fatal errors, like other errors ?
Fatal errors might let the engine in some undefined state. The only safe thing we can do is terminate the current script. fror other cases we have catchable fatal errors. Maybe there are a few more cases where fatal errors can be made catchable fatal errors, but these are case by case decisions. johannes -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php