Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87111 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39181 invoked from network); 11 Jul 2015 18:51:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jul 2015 18:51:05 -0000 Authentication-Results: pb1.pair.com smtp.mail=ralph@ralphschindler.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ralph@ralphschindler.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain ralphschindler.com from 209.85.218.53 cause and error) X-PHP-List-Original-Sender: ralph@ralphschindler.com X-Host-Fingerprint: 209.85.218.53 mail-oi0-f53.google.com Received: from [209.85.218.53] ([209.85.218.53:33342] helo=mail-oi0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8A/81-32599-69561A55 for ; Sat, 11 Jul 2015 14:51:04 -0400 Received: by oiyy130 with SMTP id y130so230834795oiy.0 for ; Sat, 11 Jul 2015 11:51:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=anaLgGZ+M1Z3+TpWY7F6W2gwIkd+phWK6rAhnlga7Zw=; b=mAXoZy25A8P+Tlf9Wag39PcxneaahZqpaIFOj4+Q0MNk8Jj+C9l46zqOjXuFT1j2nV IoAKy9sLSVz+lAJHIdLOlk/xJNN1//NaKUAlEbJ2HpUJ5ce9P93LiNzMEJ6w4iGK048g 0RPDFg7EI4tge/bWqkW18EROfH2kdnSpzGdUfuboKgzqkzC1adnxllynlBHrPsF8ges4 ULEzZGoHaKo2jrF1O5bzNRBR4dkFdHX6Co9zfZ0jNhX9F2wcJD8qRwozlfXPXPCVVyZV VvE7CGWZHKVMa3lRy/4ybTvYqYRPq3XRzB2gGslrMNGIihdxJzioR6t5KD1MKkdn1QvC qnSw== X-Gm-Message-State: ALoCoQnkLl03vY8n9PTlFoPEsiO7tuB2Uxf6/g1cLiJUWJl4cUh4t7RtI182yd6vswjd3Az1lMWX X-Received: by 10.60.50.232 with SMTP id f8mr23623662oeo.55.1436640659994; Sat, 11 Jul 2015 11:50:59 -0700 (PDT) Received: from [172.16.1.4] (ip72-211-83-231.no.no.cox.net. [72.211.83.231]) by smtp.googlemail.com with ESMTPSA id r4sm6798303oih.15.2015.07.11.11.50.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Jul 2015 11:50:59 -0700 (PDT) Message-ID: <55A16593.7030608@ralphschindler.com> Date: Sat, 11 Jul 2015 13:50:59 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: PHP Internals List Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Possible Bug or Bad Expectations? From: ralph@ralphschindler.com (Ralph Schindler) Hi all, I am conflicted as per if what I experience in this code should be throwing a notice in E_STRICT: http://3v4l.org/srm5f ['baz' => 5]]; $bar = ['box' => 'baz']; // this will Notice: Undefined index: boom var_dump(isset($foo['bar'][$bar['boom']])); Essentially, my expectation is that anything inside an isset() would be immune from notices of undefined indexes, but that is not the case with nested array key lookups. 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 behavior leading me to believe I might have a bad expectation here. In any case wanted to check. Thanks, -ralph