Re: Calling method on non-object recoverable? (was: type hinting throwing a fatal error)

From: Date: Fri, 26 Aug 2005 07:08:40 +0000
Subject: Re: Calling method on non-object recoverable? (was: type hinting throwing a fatal error)
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-18463@lists.php.net to get a copy of this message
On Thu, 25 Aug 2005, Michael Sims wrote: > Derick Rethans wrote: > > I implemented that (except I dropped the _ERROR part for > > E_RECOVERABLE_ERROR as I found it too long). The patch is here: > > > > > > http://files.derickrethans.nl/patches/e_fatal-20050825.diff.txt > > > > Any comments? > > Since this new error level is being created, I have a suggestion for another type of > error I would very much like to see changed from fatal to "recoverable". The error > I'm referring to is attempting to call a method on a non-object. This used to be a > E_WARNING a long time ago in PHP 4 (if memory serves), and is now fatal. This should stay a fatal error, you're obvious doing something wrong, and it leaves the engine in a somewhat unstable state. Derick

« previous php.internals (#18463) next »