Re: [PATCH] make "Call to a member function on a non-object" non-fatal
| From: | Per Lundberg | Date: | Fri, 23 May 2003 16:00:33 +0000 |
| Subject: | Re: [PATCH] make "Call to a member function on a non-object" non-fatal | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-1932@lists.php.net to get a copy of this message | ||
On Fri, 2003-05-23 at 17:43, Morten Poulsen wrote:
> The attached patch (against zend_execute.c 1.316.2.10) changes a "Call
> to a member function on a non-object" from E_ERROR to E_WARNING so it
> can be handled by a "user space" error handler.
I think this patch is bad. It distorts the control flow of a normal
program. Calling member functions on a non-object is a serious error,
so the only real option IMO is dying, or throwing an exception.
--
Best regards,
Per Lundberg / Capio ApS
Phone: +46-18-4186040
Fax: +46-18-4186049
Web: http://www.nobolt.com
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc