Re: Fatal error: Call to a member function on a non-object
| From: | Christopher Vogt | Date: | Mon, 17 Nov 2008 09:51:18 +0000 |
| Subject: | Re: Fatal error: Call to a member function on a non-object | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-41961@lists.php.net to get a copy of this message | ||
Hi Kalle,
> I personally don't really mind it, as you got the instanceof and
> typehinting to check for whenever a variable is an object, so I would
> say its more of a user design issue. Fatal errors just requires you to
> refactor your code so your code shouldn't emit such things which I'm
> alright with.
fatal error can also happen caused by a bug. The case described in my
Mail is even rather likely. However a fatal error prevents me from
handling the error using an error_handler. THAT is the problem.
Best regards
Christopher