Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94935 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90621 invoked from network); 8 Aug 2016 15:50:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Aug 2016 15:50:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=dave@mudsite.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dave@mudsite.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain mudsite.com designates 209.85.214.42 as permitted sender) X-PHP-List-Original-Sender: dave@mudsite.com X-Host-Fingerprint: 209.85.214.42 mail-it0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:35314] helo=mail-it0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E5/92-33134-23AA8A75 for ; Mon, 08 Aug 2016 11:50:10 -0400 Received: by mail-it0-f42.google.com with SMTP id u186so77166745ita.0 for ; Mon, 08 Aug 2016 08:50:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mudsite-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=O1duns8JvDWgSqnks4Q4l/iC5+YRZ/Ubo+Rl4MffySE=; b=VAQHzAfvr6b3MpckxNJ4RdTLf7cvolmt5eLPFVVPEQOidnXabQuPUxAsVgc9kcxArO TGf3/4P/MTf0IMayKo9VGg93SIA5OKr46ja661QspvAaDoDUMTaKaxqhlwWhYm9PB7n+ pK5jP4zlcboDb6+t3rsFGVE/KFK3NChbqkPPn5xGhbafFaB8Y7UxJrEY2DBOoFhOF9nm 1UTvnKL/ICRiTC1i23cuULhncAsgDqiM/+GvMkx0/QviU6ig6ry1hoPH5EW4CHyzxWrF XY1jV7Ezdah/FyaEZA5PslH82/4SG0j9KIRgfKBGOQsNd4obkumEUP6+R2Z/FzjUKcer CqNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=O1duns8JvDWgSqnks4Q4l/iC5+YRZ/Ubo+Rl4MffySE=; b=OUVG/wmIWxFXZRRkIrJLrOte+eFtRULx5emH4pqStt9rfOqb2CLietOaMxthyMGXuL FLMkrsS98cVZhvubhfZ/l0yZriB25CjmiAm5YVvVClboVdnERG1SGR+c4BISP/ln+ICa FDhCG4b32DGDuWThIaHHinsgtsHyZg/hkWrs2F1Iqfc9rTSngjpAAAwnJXgS8uBybtOh V8+zGPIXKsV+Qn33Kvl2kcP4ghEOQP7pGIPQmalUkG0qQ+Xntwo7SAkVmoTrgAYl1l4H Zc4u/Fm7gfQpK5tSbIdqciKvklrcHE19rCjsYv+cldaFvXfolfmBtmuj1pw3qiOH2XgH W9/Q== X-Gm-Message-State: AEkoouvVbVuaLWAVzP6UgrLconIqvdY6ogbDh8JIWr/NqMdiR1r4ulql3JcpfCB+IVvHb+SZ5gy7W9+9hI0eKw== X-Received: by 10.36.196.65 with SMTP id v62mr18795641itf.78.1470671407940; Mon, 08 Aug 2016 08:50:07 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 08 Aug 2016 15:49:57 +0000 Message-ID: To: Dan Ackroyd Cc: PHP internals Content-Type: multipart/alternative; boundary=94eb2c05fefada23a60539915e24 Subject: Re: [PHP-DEV] [RFC] E_NOTICE for invalid array container From: dave@mudsite.com (David Walker) --94eb2c05fefada23a60539915e24 Content-Type: text/plain; charset=UTF-8 All, I updated the RFC, and made a couple updates to tests where this notice is raising itself (fpm & mysqli). I ended up catching a couple of oddities in how mine (and previous proposed) changes would have impacted a foreach(list() = each()), so it won't raise a warning on the last, null, element of each. Before I ask for voting, I do have a best-practices question I hope someone would have an answer to. My dev setup doesn't include all the extensions, nor do I have a copy of windows for testing. What would be the best way to ensure all tests are run so I can find other locations where this warning might be adversely impacting some of the tests? I know Travis will run tests when I create a PR, but I don't know if it is ensuring all tests are fully run either. Thanks -- Dave On Tue, Aug 2, 2016 at 12:33 PM David Walker wrote: > Dan, > > You're right on both accounts; also, as I just notices it could easily > have other BC-breaks (although expecting errors in a certain format is odd) > through calls like error_get_last(), which would regardless of INI settings > include this NOTICE. I will update the RFC with these changes. > > -- > Dave > > On Mon, Aug 1, 2016 at 4:27 PM Dan Ackroyd wrote: > >> Hi David, >> >> The updated section still doesn't really describe the BC break that well. >> >> Some people will need to change their code to avoid having notices >> raised frequently. How difficult that will be needs to be thought >> about. >> >> Additionally, although the default ini files may turn off notices in >> production environment, I really don't believe that is best practice. >> For my machines, in both production and dev all warnings and notices >> (except deprecation notices in production) are converted into >> exceptions. Anything else allows mistakes in code to go undetected. >> >> cheers >> Dan >> > --94eb2c05fefada23a60539915e24--