Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:1932 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94582 invoked from network); 23 May 2003 16:00:26 -0000 Received: from unknown (HELO salem) (212.209.116.169) by pb1.pair.com with SMTP; 23 May 2003 16:00:26 -0000 Received: from localhost (localhost [127.0.0.1]) (uid 1000) by salem with local; Fri, 23 May 2003 18:00:34 +0200 To: Morten Poulsen Cc: PHP Internals List In-Reply-To: <1053704626.1035.21.camel@localhost.localdomain> References: <1053704626.1035.21.camel@localhost.localdomain> Organization: Capio ApS Message-ID: <1053705633.1279.41.camel@salem.intra.nobolt.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=_salem-26941-1053705634-0001-2" X-Mailer: Ximian Evolution 1.2.4 Date: 23 May 2003 18:00:33 +0200 Subject: Re: [PHP-DEV] [PATCH] make "Call to a member function on a non-object" non-fatal From: per@nobolt.com (Per Lundberg) --=_salem-26941-1053705634-0001-2 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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 --=_salem-26941-1053705634-0001-2 Content-Type: application/pgp-signature; name="signature.asc" Content-Transfer-Encoding: 7bit Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQA+zkWhTN4aRo9LnpERAjebAJ41dFgxn31Z9opOdEq3aoQrlS2YvACfbtMs 9bifFDkjZwwVdFaPF3WHM8Y= =feZe -----END PGP SIGNATURE----- --=_salem-26941-1053705634-0001-2--