Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87117 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1341 invoked from network); 12 Jul 2015 08:13:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jul 2015 08:13:41 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.178 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.178 mail-pd0-f178.google.com Received: from [209.85.192.178] ([209.85.192.178:34707] helo=mail-pd0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 10/91-23914-2B122A55 for ; Sun, 12 Jul 2015 04:13:39 -0400 Received: by pdbep18 with SMTP id ep18so207786407pdb.1 for ; Sun, 12 Jul 2015 01:13:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=eoBvogGwMf8rf7v9Jt9tJQzuR/CTUh+h5yz1LQnvsOc=; b=x1R2nmS9r/paeetKWPhjNpYuCRu+kJxKvb1QQNaeh6KSrWg3RjfQG2jgMBEIqdougK 5sujueenr9rQzUu0ADEvnUDt6RTt1sbRvgyfF/mcsOQaKigAfcFXAjpuo44SFCwTr/Ln o4GTveplZThpeEWzKQ+1FyuCs8vY76wr9SIGOX0vtejWfihSorq49lksK2QGnFYCpqNU DOLRvZq0SDNaZjJxkJyCpCzvrMXJeESWAORK/C/ZRJNkEUohFm/O5bJLn+/mUqvyfd1r Ee67l7SbzjobDNehxZIW94jKzlCdHCC5Yryf/bjx2zAV1wdseUJWPhYdPhpYE5tYP/4U QmbA== X-Received: by 10.70.56.4 with SMTP id w4mr58773616pdp.148.1436688815345; Sun, 12 Jul 2015 01:13:35 -0700 (PDT) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by smtp.gmail.com with ESMTPSA id d7sm14589811pbu.41.2015.07.12.01.13.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Jul 2015 01:13:34 -0700 (PDT) Message-ID: <55A221A9.2080907@gmail.com> Date: Sun, 12 Jul 2015 01:13:29 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Ralph Schindler , PHP Internals List References: <55A16593.7030608@ralphschindler.com> In-Reply-To: <55A16593.7030608@ralphschindler.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Possible Bug or Bad Expectations? From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > Is this a bad expectation to have? Or should isset() silence the nested > undefined index as well? I also realized this has always been the That would be really hard to do IMO. Imagine $bar being an object and implementing array access - so it needs somehow know that when offsetGet is called, it's in isset expression context somewhere upstream? While it may be nice in theory, in practice I'm not sure it's doable - or worth making doable. -- Stas Malyshev smalyshev@gmail.com