Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110282 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 22286 invoked from network); 26 May 2020 18:32:58 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 May 2020 18:32:58 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1E12D180211 for ; Tue, 26 May 2020 10:13:12 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 26 May 2020 10:13:11 -0700 (PDT) Received: by mail-ed1-f42.google.com with SMTP id d24so18256410eds.11 for ; Tue, 26 May 2020 10:13:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=ynVQqehIUX+LlgIUBkp7M71VMUByprh7PcW4bF9Uc2w=; b=E6/0iwDv8yNf7gmebgI5X4A5PnC6e5/t3t74DeRmu73mK1Q4NCzSjKxyV73/OI7yoy jFiuXmSfNAIy5yy464FsTn3jGui0Vc9h+E4b5p6BHlYbEH08g60b+xno4+PLSkOUsFOE 7KUe4eFZMS+0EM4rlmzOlNp7/i+KotgaURusqQzxC8zsJ3AM/vW59k3p0k+IP3Ii/lJq pNPFeHqs68ujUfZ3A9xuV7yA7ctgktGPbMPfzZMZsVO9OVRUhy8hD5M8Dj68w9UKFKZ3 ehZu9ybOJA36rFWXrNRk8ilcB80d35YYeeNGu8MtmA4HAyXPPIQ8PRDweQf5iXBSgg2C FoWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=ynVQqehIUX+LlgIUBkp7M71VMUByprh7PcW4bF9Uc2w=; b=q0Tu+cKFjr11rFTn69yTQ4GuXSAI8XsXz4ErmRn4SNLdLfcTtk3PNhRn7eeX/bF+r/ vOlnu7II2TmKt8/bh5qeH6DLSWOjXNeaL+HZYxCgdlEsNw0p5hCUNs4CWRb8LJf9HS86 2lBeWi28ADzW6Fy7b5r09O1YaMwRdpZHgW3hToru/eOWUN8AxPOqkeWnwBWqyPW2kwXW 1HNE44xiBy171CncgJKT0G2jAXyRUSlyQWvphc9lK/Y2/CTz/sriz0uzTBrJ3jJm1XCA IWwQuqnEf1GJNjvu0g09n7S1dqwbn0A8+p3AMhAccOQmY64/8yKFOdkJyzVp1NNyz35I zl8g== X-Gm-Message-State: AOAM530j1UQs0l3baJgM70if94JsQnc5dcIBovwDYvP1Xr6Gt0uoOS3w oMNdc6yApcVayEc8eobNxRydtNyf+zDfZrNG89cP3DiKjw== X-Google-Smtp-Source: ABdhPJw6ju9BE3Zw0KBoab4DXKvJx5tANP1MPFH+Rp8XYd6RFK+ZyAzQfT/VJlKUn4ztHSQxmwpmVXkHcM5yYotwPCI= X-Received: by 2002:a50:ccc5:: with SMTP id b5mr20115331edj.340.1590513190400; Tue, 26 May 2020 10:13:10 -0700 (PDT) MIME-Version: 1.0 References: <0819e254-c789-e3d6-b23d-08128f195953@gmail.com> In-Reply-To: Date: Tue, 26 May 2020 13:12:59 -0400 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="000000000000b97a0905a6903556" Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Error Exceptions mode From: iggyvolz@gmail.com (Katie Volz) --000000000000b97a0905a6903556 Content-Type: text/plain; charset="UTF-8" On Sun, May 24, 2020 at 7:29 PM Rowan Tommins wrote: > In my mind error_reporting should make absolutely no difference. As you > say, this option would be for people who don't want to interact with the > current error system in any way, and that includes its global > configuration state. > My main concern for this was that it would make implementation more difficult - however it turned out to be fairly straightforward. One note on this - currently declare() statements do not allow constants or expressions in them. I had to patch zend_compile.c to allow this, so this will affect other declare statements as well (for example, declare(ticks=E_ALL - 37) will be valid). Unknown constants or incorrect types (ex: declare(error_exception=[]), declare(error_exception=E_ALL - FOO_BAR)) will fail here. --000000000000b97a0905a6903556--