Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107335 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 54945 invoked from network); 26 Sep 2019 16:44:13 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 26 Sep 2019 16:44:13 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id A1F612C0544 for ; Thu, 26 Sep 2019 07:23:37 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Virus: No Received: from mail-vs1-xe2b.google.com (mail-vs1-xe2b.google.com [IPv6:2607:f8b0:4864:20::e2b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Thu, 26 Sep 2019 07:23:37 -0700 (PDT) Received: by mail-vs1-xe2b.google.com with SMTP id v10so1722374vsc.7 for ; Thu, 26 Sep 2019 07:23:37 -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; bh=0ltpO6hwyoAJCMY9CQ3SxvoVtcBuKfMW/g+LuqaLSX8=; b=N1lAeDRgEacJWZ0E/vjUjUFnu7VHW5MqIewaBFWO2J5wfq3h2OfBYQKZhQDR3bGn8G rOnQqB3yM/mYki6W4LRBlaPGZPi93gpNbeRniY/qwEoAgRmrwJ/5M3Nr1pizY2VUYb7C G0bPP0m/ovmIUUI0KuZWPNEmGTeFmrpJpbvw/W4s91gkRFz0vd70+MDkN3oCNIsc0XX8 x/H+/eVz/NXeUQnYkyfAJSap9Qv1QHqeVoAsuyonIx7JkhZUqI6JSkdskYYPs6ojcTM7 HFx0cjy6bE8TEfK0lr/AgUNb0F2iksomQB52qQWhUe835+cyXc6TxhyYubcLmEd+NpzU SRNA== 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; bh=0ltpO6hwyoAJCMY9CQ3SxvoVtcBuKfMW/g+LuqaLSX8=; b=Bts4frTtIWRRgcIsVgc+f5mY24A3f5U1GffdrumfnAqBkmIynQsFf810JCY+M58sBh 8X5e4i1zFtggeopa4gkuhlZbOTdXzIX8UybqhkbHruthSE87nMpncvuQ2Pu0uUC3DXOF KPkFfeeeUCwH9cUGJ6OZFCz699Qqrdc4vdSqW5pizDQdje9xZNcrTwwC+ZFUlRvH1zrP /DduZeOt8xTtapAbKbIB9ycyNC2tEMNEee3QP/8CK2IYAXFKFBm6pHPTJ+pnhinBAh0T /7APNtdSS74NowxwaH3IgOcmUoVucu8Plsu6gqhm3QMWmHeTY6xe1fgaDt5U+OikKZ5t bACw== X-Gm-Message-State: APjAAAWD8Hz84YIPBGGaUKVLsjL1O7I0Kzr60NGWSiOETuGDT850BD1+ bS9ns6IiQzWRePTm4yAFJ2iNTEH1Nz2JZHUKo28= X-Google-Smtp-Source: APXvYqxf8Xho9H6s/byLdyr7G5Xd/3Cjgnt5UcT7NTupgHDLAwytaS9OABGDRcLzavnBpc6vgzIqa06DJ/pfxOyzfXQ= X-Received: by 2002:a67:c494:: with SMTP id d20mr1991448vsk.126.1569507816814; Thu, 26 Sep 2019 07:23:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 26 Sep 2019 10:23:25 -0400 Message-ID: To: Christian Schneider Cc: Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary="000000000000e4bae805937583e5" X-Envelope-From: Subject: Re: [PHP-DEV] [VOTE] Reclassifying engine warnings From: chasepeeler@gmail.com (Chase Peeler) --000000000000e4bae805937583e5 Content-Type: text/plain; charset="UTF-8" On Thu, Sep 26, 2019 at 4:31 AM Christian Schneider wrote: > Am 26.09.2019 um 09:41 schrieb Nikita Popov : > > * Remainder: 54 yes, 3 no. Accepted with 95% majority. > > Just for the record: > The one I'm most concerned about here is the foreach on undefined > variables throwing an exception. > While this was already promoted to a warning at an earlier stage it still > allowed a program to finish with a well-defined result (looping over > nothing does nothing). > Now this code will stop with an Exception and possibly won't produce its > output. > > I agree. At the very least, I'd propose that null (and ideally false) NOT throw an exception. There are enough instances of methods that return one of those values when there is no data (so, not an error situation) but an array when there is. > I noticed this before the vote but as the mailing list was already flooded > with the 'undefined variables' discussion I feared that there was no place > to bring this up without getting personally attacked like I was for the > undefined variables stuff. > > Thanks for bringing this up. I think this should be noted in relation to the other RFC currently out there. Those of us speaking out against this RFC are the ones being held up as examples of why that RFC is needed, which this statement actually shows that it was those in favor of the RFC that were behaving in a way that intimidated others and made them feel reluctant to contribute. > Anyway, the vote is done, I said my piece and will shut up about it now, > - Chris > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Chase Peeler chasepeeler@gmail.com --000000000000e4bae805937583e5--