Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94292 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18491 invoked from network); 28 Jun 2016 02:36:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jun 2016 02:36:49 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.43 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.218.43 mail-oi0-f43.google.com Received: from [209.85.218.43] ([209.85.218.43:33027] helo=mail-oi0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 23/1C-40393-0C2E1775 for ; Mon, 27 Jun 2016 22:36:48 -0400 Received: by mail-oi0-f43.google.com with SMTP id u201so4587906oie.0 for ; Mon, 27 Jun 2016 19:36:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=osL51JaEFNE83HuXibxcVGhHUxJJKmLxh9pbqZwx3q0=; b=eQdIr0M344otQ+DaDnDTXqxe3/IiPKyI6TlwNJBWQgj88VL7SkAneed0Whu8HbOU8b AQuTc5KPtDAqjuXlxLvsppom41egNtXoUzV3byvXlrxgcJEsKW8S7hi2fHpnazyPR3ES SQCmu//EuJOHXYJ/LEeE71/QsoRUwyWtvjYRa7+uRmUA+Me9uZo+T8/srKLROGJ9M9F3 GDKpL+hA2tWMukg7VBdV0A8WzbA3frAUo3uAWuI7C3jk8w1+Cg9RSp7K/gQwTntpEaX3 aidJRmELdS9OpUKP8NPhQyQhz5W5R1NlTHJKCjoykz6p/2cudltPXu4qOVoRFoCuXTKS IaFQ== 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:from:date :message-id:subject:to:cc; bh=osL51JaEFNE83HuXibxcVGhHUxJJKmLxh9pbqZwx3q0=; b=cJLY0+/GXwP6MDWDZZEfsFxsSAIbosQivqaEkAavWXwLcktt1J8hKBqwgZTNYkNoss iddrfCmzw3TheF1Kib3AB5FPYejivn+xY1f+w0enrwkpcC7i+2D4wln+XzDV/isNp6dk 516OKtKnn61Op1Qb2m+P51LSRTgw2aDuCO6JB1QoxDwo1G8vNki3x3W7jcxS5QIg7XJA FlS8ZSCiNtTLZP6m+gdPrKNIWKTn3ftFa9ZJgHJdw8p+lvcHtAAzBY7WspV7AW5Ppgfs k+LGQfYHKMkGzcXSLhal3wteoSJgPGGrxJtWnNBMR9K/NU9XUOi5e3P7DkkVcaSmJmsS +PRw== X-Gm-Message-State: ALyK8tIGRdpKpagV65Q201+NLUFe3bRA9DXu/zCa37jWrAeONVYfOMKrwmzosh/SIL+7SZ4geESohsItkAid7w== X-Received: by 10.202.52.196 with SMTP id b187mr194681oia.113.1467081405685; Mon, 27 Jun 2016 19:36:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.190.3 with HTTP; Mon, 27 Jun 2016 19:36:45 -0700 (PDT) In-Reply-To: References: Date: Tue, 28 Jun 2016 09:36:45 +0700 Message-ID: To: Aaron Piotrowski Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC][Vote] Throw Error in Extensions From: pierre.php@gmail.com (Pierre Joye) hi, On Mon, Jun 27, 2016 at 10:17 PM, Aaron Piotrowski wrote: > Hello, > > Voting has opened on the RFC to change most conditions in extensions that raise E_ERROR or E_RECOVERABLE_ERROR to throw an instance of Error instead. > > RFC: https://wiki.php.net/rfc/throw_error_in_extensions > PR: https://github.com/php/php-src/pull/1942 I like the idea. It should be 2/3 tho'. Also "Generally none, though it is possible some exceptions thrown could be unintentionally caught by code written for PHP 7. However, it is rare for Errorexceptions to be caught outside of cleanup or logging, so catching these exceptions is likely desirable over a fatal error." is a BC break, not sure there are codes out there that expects or may behave (more) badly with this than with a fatal error. Cheers, -- Pierre @pierrejoye | http://www.libgd.org