Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69865 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51924 invoked from network); 25 Oct 2013 13:56:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Oct 2013 13:56:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=richard.bradley@softwire.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=Richard.Bradley@softwire.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain softwire.com designates 195.130.217.221 as permitted sender) X-PHP-List-Original-Sender: richard.bradley@softwire.com X-Host-Fingerprint: 195.130.217.221 eu-smtp-delivery-1.mimecast.com Linux 2.6 Received: from [195.130.217.221] ([195.130.217.221:60510] helo=eu-smtp-1.mimecast.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/F1-40084-E687A625 for ; Fri, 25 Oct 2013 09:55:59 -0400 Received: from smtp.softwire.com (31.221.86.188 [31.221.86.188]) (Using TLS) by uk-mta-4.uk.mimecast.lan; Fri, 25 Oct 2013 14:55:54 +0100 Received: from EXCHLONDON2013.zoo.lan (10.210.10.43) by EXCHLONDON2013.zoo.lan (10.210.10.43) with Microsoft SMTP Server (TLS) id 15.0.712.24; Fri, 25 Oct 2013 14:55:51 +0100 Received: from EXCHLONDON2013.zoo.lan ([10.210.10.43]) by EXCHLONDON2013.zoo.lan ([10.210.10.43]) with mapi id 15.00.0712.012; Fri, 25 Oct 2013 14:55:51 +0100 To: Joe Watkins , "internals@lists.php.net" , Larry Garfield Thread-Topic: [PHP-DEV] [RFC] Exceptions in the engine Thread-Index: AQHO0OXpAGK57fWUkkCpE1NssFQnYZoEXvKAgADzTACAAB5DcA== Date: Fri, 25 Oct 2013 13:55:50 +0000 Message-ID: <7048a577d3c04532b24585f6b043f913@EXCHLONDON2013.zoo.lan> References: <52699FB5.20300@garfieldtech.com> <526A6BCC.3060502@php.net> In-Reply-To: <526A6BCC.3060502@php.net> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.210.1.210] x-pp-proceessed: 35fffef3-36af-403a-a9f0-f56bb0ff3857 MIME-Version: 1.0 X-MC-Unique: f1d46b53-55a1-4ad5-a58f-9d6030c8b63f-1 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Subject: RE: [PHP-DEV] [RFC] Exceptions in the engine From: Richard.Bradley@softwire.com (Richard Bradley) > -----Original Message----- > From: Joe Watkins [mailto:krakjoe@php.net] > Sent: 25 October 2013 14:02 > To: internals@lists.php.net; Larry Garfield > Subject: Re: [PHP-DEV] [RFC] Exceptions in the engine > > On 10/24/2013 11:31 PM, Larry Garfield wrote: > > On 10/24/13 12:41 PM, Nikita Popov wrote: > >> Hi internals! > >> > >> I'd like to propose an RFC, which allows the use of exceptions within > >> the engine and also allows changing existing fatal errors to exception= s: > >> > >> https://wiki.php.net/rfc/engine_exceptions > >> > >> This topic has been cropping up in the discussions for several of the > >> recent RFCs and I think the time has come to consider moving away > >> from fatal errors. > >> > >> Thoughts? > >> > >> Thanks, > >> Nikita > > > > As a PHP user-space developer I love this idea. However, I share the > > concern of others here that it could result in BC unpleasantness, even > > if limited to the E_FATAL and E_RECOVERABLE_FATAL use cases. I don't > > know off hand how various versions of Drupal would handle this. > > > > --Larry Garfield > > How could anything be reliant on the behaviour of a fatal error in any me= aningful way ?? > > Cheers > Joe In plenty of ways: for example currently frameworks can "catch" fatal error= s using "register_shutdown_function" and display an error page to the end u= ser (say if there is an attempt to call a method on a null object due to an= unanticipated runtime error). Current frameworks might be broken if the way fatal errors work is changed.= That would be a BC break. See e.g. http://stackoverflow.com/questions/16284235/zend-framework-error-p= age-for-php-fatal-errors/16284260#16284260 (This is not a vote for or against this proposal; I'm just answering the im= mediate parent here.) Best, Rich Richard Bradley Tel : 020 7485 7500 ext 3230 | Fax : 020 7485 7575 softwire Sunday Times Best Small Companies - UK top 20 three years running Web : www.softwire.com | Addr : 325 Highgate Studios, 53-79 Highgate Road, = London NW5 1TL Softwire Technology Limited. Registered in England no. 3824658. Registered = Office : 13 Station Road, London N3 2SB