Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69853 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56078 invoked from network); 24 Oct 2013 19:40:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Oct 2013 19:40:31 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.49 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.219.49 mail-oa0-f49.google.com Received: from [209.85.219.49] ([209.85.219.49:56860] helo=mail-oa0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8C/60-10840-FA779625 for ; Thu, 24 Oct 2013 15:40:31 -0400 Received: by mail-oa0-f49.google.com with SMTP id j10so2884897oah.36 for ; Thu, 24 Oct 2013 12:40:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Is07fwVjThA9cP96Yda0Qwiyle6RIwafEghLGe72kh4=; b=JHRZRy9/ZYM4zo+HW6YXB5E2cZzWpnLGj2SSKSEDSjGiDHWdGZT33hFp3SEgKN19vc e9PUJIDd5qYujJ5W7/yoJEQGB9I4TVaLwVjjadD94TLJ4T0vkik3QqRL+xfcwhx7kgTK PwevFqPcBlSfJLJQl9YtehBB2ilplPEY2ECKWgVhhexh+/miKst4HWMKBCrpFoCvuruJ i3QEb1dZhe0RfUJilSAksJ4qbia7I6+/Yp5AtXpklCYWb7UdjaXBTgj18XWjzvM4bBud QRMi/6Cu2dYO4s6CFfsc1X1cD7xhbF2FvSdDAwinqCEbpfd72rFHb2a5S5p3MGGIPru4 UHzQ== MIME-Version: 1.0 X-Received: by 10.182.39.161 with SMTP id q1mr3462970obk.54.1382643628912; Thu, 24 Oct 2013 12:40:28 -0700 (PDT) Received: by 10.182.54.112 with HTTP; Thu, 24 Oct 2013 12:40:28 -0700 (PDT) In-Reply-To: <526974AE.1050601@php.net> References: <526974AE.1050601@php.net> Date: Thu, 24 Oct 2013 21:40:28 +0200 Message-ID: To: Joe Watkins Cc: PHP internals Content-Type: multipart/alternative; boundary=001a11c2de605a375b04e981ced4 Subject: Re: [RFC] Exceptions in the engine From: nikita.ppv@gmail.com (Nikita Popov) --001a11c2de605a375b04e981ced4 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Oct 24, 2013 at 9:27 PM, Joe Watkins wrote: > I have to ask the question; why stop at half way ?? > > A warning does absolutely nothing for the programmer, or their code, all > it does is warn the client, who isn't very likely to even be in contact > with the programmer, even less likely has access to their code. > > [...] > > This solution has existed for years, why do we shy away from it so much ?? > I've never heard a really good argument for the existence of warnings or > notices at all. > > This is all said with the knowledge that some errors are truly fatal, > there is no point to, or chance of, throwing an exception. > > +1 on the whole idea, however far we are able to take it ... the further > the better in my opinion ... > Changing existing warnings to exceptions would be a (massive) compatibility break. Changing fatal errors isn't (in first order approximation) because - well, they are fatal, you can't really depend on their behavior unless you are using them as a die-substitute or something ^^ As this RFC is aimed at the 5.x branch it needs to maintain BC to a reasonable level, so changing warnings is really out of its scope. If you want to change warnings to exceptions that should be a separate proposal targeted at PHP 6. I'd prefer to keep it out of this thread. Thanks, Nikita --001a11c2de605a375b04e981ced4--