Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95541 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1102 invoked from network); 1 Sep 2016 16:40:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Sep 2016 16:40:31 -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.217.180 as permitted sender) X-PHP-List-Original-Sender: dave@mudsite.com X-Host-Fingerprint: 209.85.217.180 mail-ua0-f180.google.com Received: from [209.85.217.180] ([209.85.217.180:36807] helo=mail-ua0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8E/64-47600-DF958C75 for ; Thu, 01 Sep 2016 12:40:30 -0400 Received: by mail-ua0-f180.google.com with SMTP id m60so155175154uam.3 for ; Thu, 01 Sep 2016 09:40:29 -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=AEmOduUXpHtjUiZsEjaxcKGCFT0WHNluYEcYSlQjywM=; b=abPovkaigNFFLRBzVUDPseBgQIacQNky2mNDYWZJiZ2J6C1UszwtYyX2wSieXPjHYM LRMJT10P7YZL+I4NYtRdEkGQyIvONd7vA7z0iXLZ6Anv//bzfuD3k8G+yVMgpmc5TVZ3 qpT8KPngxhh/iPr6fc/o8SFwhkE4e4EUFYBUMLiVJiZp+h+jSXFrSnwYsNndpy8cb3av mgzhyR85rtUrX9elnGeRheQt2euO0s8AenLO78vZFisXW1sxU9JTIvJvX33dNykFzO0Z LxlWbrlkrHhwcfIEL70hhDsGUy5N82CmQGSKtTKGgyOU5TRs3mSWjIyhOzwNJXasUdgq jmiQ== 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=AEmOduUXpHtjUiZsEjaxcKGCFT0WHNluYEcYSlQjywM=; b=g9BLh6Y1ofHbW/zgR8E8wD7cORvJvBuNVGN1YA7Mrxs6K4r5mm8VulHTlqgmTQefo7 JVSfZSyrohGMmUl6+MKKubySjPvcHIV3E4PQ6Yuvk/J7tmmkGlnvFg0geP0MhgaBmz+P r6HBOowyxNJfw2vSykoiRA/Mld8OBDpG3pRQ+w3iJ0M7Vle+wfxOAWTFCy0EI+oxzq/q k3AjTtjkuGymACWJYG9ybdcVxSpFBSBvHfplDQ0QWpY9Y5cRe1t2V2AHouDRKHuqGugx DQYC9PjDqb3BK1/uqI3TwqSxBl+SjZBsAFpSZ6qiK48t91RYoSbs/6bowatBnwDLWBQ2 U3kw== X-Gm-Message-State: AE9vXwMIFSS9OeXYivZ/+SNuwEsExClFoG0OrNbWPQYESQpPxOtu4t2TlnPL3x6fpsphCWU5lsp9VgSd23Fi1w== X-Received: by 10.176.64.161 with SMTP id i30mr7219546uad.107.1472748026629; Thu, 01 Sep 2016 09:40:26 -0700 (PDT) MIME-Version: 1.0 References: <1e6cac8a-e1af-c9e7-a900-a2efda0771dd@gmx.de> In-Reply-To: Date: Thu, 01 Sep 2016 16:40:15 +0000 Message-ID: To: Dmitry Stogov , "Christoph M. Becker" , Marco Pivetta Cc: PHP Internals List , Nikita Popov Content-Type: multipart/alternative; boundary=94eb2c123712f8b4f0053b74de7f Subject: Re: [PHP-DEV] Re: [RFC][VOTE] E_WARNING on invalid container read-adccess From: dave@mudsite.com (David Walker) --94eb2c123712f8b4f0053b74de7f Content-Type: text/plain; charset=UTF-8 On Thu, Sep 1, 2016 at 1:03 AM Dmitry Stogov wrote: > Hi David, > > I would propose to cancel voting and restart it when the good > implementation is found. > > Otherwise, people may rise their hands for something that can't be > implemented in good enough way. > > Thanks. Dmitry. > Hi Dmitry (et.al), I ended up addressing the problem you raised where simply looking at the next opcode type wasn't verbose enough, and had the thrown exception. So I'm wondering the reasons why looking ahead wouldn't be considered a good implementation? The attempt to limit the quantity of raised warnings, and raising once for a null, does need to be aware if the return of our op, is being used again in the next op. I do notice that in zend_execute there's no other examples of looking forward an opline, but that it does exist within zend_vm. I'm wondering if a more acceptable implementation would be to move the logic of looking-forward and checking if the next fetch-dim-r to the opcode-handler. Or, if your concern is more with the looking-forward in general. It was brought up a while back (and on the PR) of the problems associated with being able to handle a null-return from error, as compared to a null that is honestly set. The idea that array-access on null just be ignored. I'm not sure if this would be seen as the more acceptable implementation which would remove the need to look-ahead in oplines, as a NULL (error) result would safely be ignored. Thanks -- Dave --94eb2c123712f8b4f0053b74de7f--