Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106833 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 2298 invoked from network); 2 Sep 2019 19:28:40 -0000 Received: from unknown (HELO mail-qk1-f178.google.com) (209.85.222.178) by pb1.pair.com with SMTP; 2 Sep 2019 19:28:40 -0000 Received: by mail-qk1-f178.google.com with SMTP id m2so13026230qkd.10 for ; Mon, 02 Sep 2019 10:02:07 -0700 (PDT) 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=bwEUP8s9LZGSM0zxTJ7UziLsO6C80GJ+7zOwKePqXQc=; b=krUkvH6FQU6cjL4dTP9KoeKVFe0laR16IoRbBBZR3KPQwtA4WLMxHygLUZGqvfRA68 NtpwakkrINYy7xJM/okIKWmgdlHy2ndrioLX5WQHIE5Is1dN4YIKWp8wOwxjjTdni6GC wEw/m3mPO0X4g8l3p3tt+NTl3U1s9GFVIAyf89ThRu+tpHy2986WPv61r0TARQPaDgUv 3L+LT70bD4FXHXou6xJS6NCUf8WKiEgGnTcTFchY3A6O3dNrYZadzrDHe1/hUELXTqvX twwnnZDKebqj/OymAaRqMOhcT45ahILajkHPvqzC4Ju7SHQXxyml4sco1ZO/0QiezjS/ SzXg== X-Gm-Message-State: APjAAAVwGnbT5YMuSMctnJAvdSPPQRhZdtfEdC1Dv4lvhSF74r80+QLr 82ib1hSnAla8P+z1/+Q7j48eYUvNfzwKDRUeGPerRA== X-Google-Smtp-Source: APXvYqzTIWI0AbuD5JKNQNridCqAGoax0NXuZ5ku2USr3hrKXtnmBXCRYYm36EyBbJzGk8HlsUuYuv18MZJClN4h6FA= X-Received: by 2002:a37:5f87:: with SMTP id t129mr30065522qkb.183.1567443726706; Mon, 02 Sep 2019 10:02:06 -0700 (PDT) MIME-Version: 1.0 References: <33b4068a-3b32-4904-a033-4ff3f28e1161@aegir.sexy> <1EDD1FE6-9AB8-4CDF-8EE4-416C18390725@gmail.com> <94054653-020b-78bb-9208-d0533b85be72@aegir.sexy> In-Reply-To: Date: Mon, 2 Sep 2019 12:01:55 -0500 Message-ID: To: Stanislav Malyshev Cc: Aegir Leet , PHP internals Content-Type: multipart/alternative; boundary="00000000000089425f059194eeea" Subject: Re: [PHP-DEV] [RFC] Reclassifying engine warnings From: pollita@php.net (Sara Golemon) --00000000000089425f059194eeea Content-Type: text/plain; charset="UTF-8" On Thu, Aug 29, 2019 at 2:29 PM Stanislav Malyshev wrote: > >> I knew it worked, but I always considered this to basically be > >> the PHP equivalent of undefined behavior in C. And I don't think anyone > > It's not. It's very well defined behavior, that is not going to break - > unless it is broken intentionally in a zeal for adding more strictness > for the sake of strictness. So, another thing to learn. I love learning > new things, and love helping others do so! > > It is well defined. It's also, in my PERSONAL opinion, gross AF. That doesn't make me right or better or anything other than opinionated. Other opinions: * I'd quite like PHP to be a little less gross in places like this. * I think Nikita's hitlist here is a step in the right direction, however... * I DON'T think the cost to BC is justified in all cases. For example, an exception for read of undefined vars is traumatic BC. * I think declare(strict_types=1); already solved a very similar problem and could easily be applied to future issue like this. So how about we suck it up, put on our big girl panties, and just embrace declares (including namespace scoped declares and/or a modern version of .htaccess) -Sara --00000000000089425f059194eeea--