Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69854 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57790 invoked from network); 24 Oct 2013 19:45:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Oct 2013 19:45:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=pthreads@pthreads.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=pthreads@pthreads.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pthreads.org from 209.85.128.182 cause and error) X-PHP-List-Original-Sender: pthreads@pthreads.org X-Host-Fingerprint: 209.85.128.182 mail-ve0-f182.google.com Received: from [209.85.128.182] ([209.85.128.182:55175] helo=mail-ve0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 81/D0-10840-2D879625 for ; Thu, 24 Oct 2013 15:45:22 -0400 Received: by mail-ve0-f182.google.com with SMTP id c14so205067vea.13 for ; Thu, 24 Oct 2013 12:45:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=0kn5X/D/1LTGbJo/NJB2NfHrEuJg8LS4jwM3fNGPrig=; b=miiNsQEWePvnqOojG5QBME0h+T9dz7go+fsg+NFgPaafX1na2GDjC6qUvJdl4PA3Zy X9eGlg3qDiUJechm8qqdqQXERetg7DwPyATzSpstGob2quyozVJ3n+nVuCuCOe6WtIuS UgUzEZfdjKxJ/nDEHBZkt5ykGAYtZ3q3ZIT3v5HTTLY0MmjMKs6KrtFIaljfr3yl/Oi8 Fd22+vg8H7r5Y59vzcQzlY8k0t6jlqPYEdo+U/V65O55CJbetWxhtq4hz2YBt9bBpyBp CpNrh12z8HV/RAALJuWTQ3BeKVYqw2UqlZpFQ2115jQshgb2zeox7Y41WjjEIUz185GE qn0A== X-Gm-Message-State: ALoCoQmR9AIo3EIfEzTsurEzdjuCFHDvfuHEdqfkw0MDXN8gCcMB7h6DDGM5NbyT5CDah7qYxWtJ MIME-Version: 1.0 X-Received: by 10.220.144.80 with SMTP id y16mr2257625vcu.4.1382643918939; Thu, 24 Oct 2013 12:45:18 -0700 (PDT) Received: by 10.220.85.72 with HTTP; Thu, 24 Oct 2013 12:45:18 -0700 (PDT) X-Originating-IP: [80.4.21.210] Received: by 10.220.85.72 with HTTP; Thu, 24 Oct 2013 12:45:18 -0700 (PDT) In-Reply-To: References: <526974AE.1050601@php.net> Date: Thu, 24 Oct 2013 20:45:18 +0100 Message-ID: To: Nikita Popov Cc: PHP internals , Joe Watkins Content-Type: multipart/alternative; boundary=047d7b343974a3ef7004e981dfec Subject: Re: [RFC] Exceptions in the engine From: pthreads@pthreads.org (Joe Watkins) --047d7b343974a3ef7004e981dfec Content-Type: text/plain; charset=ISO-8859-1 Okay that's reasonable enough ... Baby steps :) Cheers Joe On 24 Oct 2013 20:40, "Nikita Popov" wrote: > 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 > --047d7b343974a3ef7004e981dfec--