Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110979 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 86852 invoked from network); 13 Jul 2020 18:59:58 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 13 Jul 2020 18:59:58 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3F0CC180538 for ; Mon, 13 Jul 2020 10:52:11 -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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (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 ; Mon, 13 Jul 2020 10:52:10 -0700 (PDT) Received: by mail-lj1-f174.google.com with SMTP id j11so18982544ljo.7 for ; Mon, 13 Jul 2020 10:52:10 -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 :cc:content-transfer-encoding; bh=YofQx2PwcsDHbK8Xp+t/EOIpDjs4OeZFykZu1auLFyA=; b=u0KkW4jhxrJ7BcQhcNopcVO4YCTa8QllZcaJ6z2tTp3sdEwZRR0XAld6nRv/Ex1x6A tY+JtmPoProwSGHetkWLzCXDf8F69S9odz5rXJW0mWMfvU4IOZAB2Ek5d5UX4rzEqDmz Fcoi/1/3OX4wnzhzjLnNa8HNPsiD26Iczz0kuX74+XBz1+h9OHesYBygoURHfisu9SN3 uE2SoPBNQnRxRVieP0LkfvWiYeioWqqh6iB8FmURIfEu37L1QEJ9YZy8tWU35tI5GED2 veLF4WzglUcdNWnmp2PJ3N4l5d+wPvkUYn1J3pYvvNUMg9Zr2GMb9pYw6+x2JVz+V0s0 Gg3A== 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:cc:content-transfer-encoding; bh=YofQx2PwcsDHbK8Xp+t/EOIpDjs4OeZFykZu1auLFyA=; b=K5sMEFq99xO6yAt1Nu7dsTZ2KDFmDNqR7KWJ296qdhjiJvnU9glzNKBHyRO7N5p4qF NJYn/Ed2eBZ6NSoK18+W/P7NdEWW2aG5Uh7cYI9ZEqXF3fgSr+S5DDLPcDjKKGopmw6s DrNYxVvjhXWxXiJCH1Zp64k6S38Y6MT0rAX4LmjjJTKY9oYez7cMcT1M2JVmGubNpDiI QJ1YnVI2rKKAkN5Db1tcFAecK8yt9g0JxtqgA1Rfgio30SvZ/6ADscv16lBWi3X7eKLH 8cNB9xEj3dMMamS481t3tSU2jfMa/6xAGmXSIOpv3jEnpVnLakSHUL2zrsce3aLeB2Bi NfxA== X-Gm-Message-State: AOAM533WSxtib2WTx+OtMvUlHq0cbD72G04M6V3mls18iQZ7v7hkkYiI Kvg2JYZGWAbXoYlHXcTSPf2Uls/fZuxaqioFMlUfrAvL X-Google-Smtp-Source: ABdhPJweFd+/qTWOFnXchcNhA0x8xLIs00BY+OIPMiCCjizIz1g7EQjSGmxZOfWHl00XFKJW7EdLPZQc3C+PVP2wuCk= X-Received: by 2002:a2e:8059:: with SMTP id p25mr374800ljg.156.1594662728916; Mon, 13 Jul 2020 10:52:08 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 13 Jul 2020 14:51:58 -0300 Message-ID: To: Levi Morrison Cc: internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Changing default assertion mode to throw exceptions From: marcio.web2@gmail.com (Marcio Almada) Hi! > > Hello everyone, > > I'd like to change the default mode of assertion failures to throw. > The current default is to warn. In my opinion this is a bad strategy: > the engine asserted that something that is expected to be true is not, > so executing further is a bad idea. This leaves throwing or bailing > out. I think throwing an exception is better than bailing out, so > that's what I propose. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > Couldn't agree more, but I always assumed this BC break could be too big before. Did you make any research on the impact already? Otherwise +1 Ty, M=C3=A1rcio