Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94805 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57689 invoked from network); 2 Aug 2016 18:33:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Aug 2016 18:33:19 -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.223.180 as permitted sender) X-PHP-List-Original-Sender: dave@mudsite.com X-Host-Fingerprint: 209.85.223.180 mail-io0-f180.google.com Received: from [209.85.223.180] ([209.85.223.180:35072] helo=mail-io0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/80-52796-E67E0A75 for ; Tue, 02 Aug 2016 14:33:18 -0400 Received: by mail-io0-f180.google.com with SMTP id m101so220738805ioi.2 for ; Tue, 02 Aug 2016 11:33:18 -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=oIdyIwgdkNHmn6Sx/tMG25AekSIOcLPov54bB//6NIk=; b=hsRstQFQVl453iA74355U16NN6wh1rEo2E/cFeQNnW1DIMRastNo88NMIX4nS79+w2 A28SMZFXGR6XM1Mh/Jc0A4wktxs79SsNF0RGytyInfH4VO4QE7l1lN0J/tudjNnNcrOD bVN0OvM4Cn0GdlHeeE8NoVab4T8UyrTSvsV8Yo2cT52B2jqmeXj0rCaTBxahDAFXwKgD iL4ezMX+j2w4q18mJ3R0Zti3YtpQzPeJW4CL7kRN8ch7uPXgpNsh8EztRXPphTrGE9cN 4nkoCo1nDDlD4AsJFkLWwLi5168UBLlyGXFq9omdTcC/wmkK8IqrPQA8gfgEFpz5q19a SBNA== 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=oIdyIwgdkNHmn6Sx/tMG25AekSIOcLPov54bB//6NIk=; b=XuItgR5t2BUzn6ea3V88u418057/tP4NlgC+6XLsyYRZNASqolH/KZHlm4RyuXL/9G reNNxaPf2vMGNXR2b1oJd1yZ+HlSBMA/0lVLCxnADiDRpNmRQHjpmrdhD43Nt75cEsqD bFzHZTXEmBWBWNZ4NdLKhdIhlJyoc/9gTDtoRnuH6DovPBn/KwcqMJExiNMeAEGMNdYW q+NvM1hiZq7Nghyjp37ueehx1G2ODtKkPANvZZNzTizGJHtF6l9rfelIU1RcPAe++yJ1 M245bOsA3tRFT5vwuiXg+WZuAgjXPT8SexxSqnZVUQZJRH9XHb4gowcoWFDWX9jGVbtF Z+Gg== X-Gm-Message-State: AEkoouu/zEJ/krgoYtVGRajYAj2tCmGWg3P/oFJLNca74KcN6Nnh7Cr/YioHmAuGw9uKoQNStGTVPqqP4Q3b0w== X-Received: by 10.107.2.78 with SMTP id 75mr62489694ioc.128.1470162795854; Tue, 02 Aug 2016 11:33:15 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 02 Aug 2016 18:33:04 +0000 Message-ID: To: Dan Ackroyd Cc: PHP internals Content-Type: multipart/alternative; boundary=001a1139465835ec3205391af398 Subject: Re: [PHP-DEV] [RFC] E_NOTICE for invalid array container From: dave@mudsite.com (David Walker) --001a1139465835ec3205391af398 Content-Type: text/plain; charset=UTF-8 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 > --001a1139465835ec3205391af398--