Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88228 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57876 invoked from network); 16 Sep 2015 10:58:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Sep 2015 10:58:32 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.181 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.181 mail-wi0-f181.google.com Received: from [209.85.212.181] ([209.85.212.181:33801] helo=mail-wi0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 81/46-30198-75B49F55 for ; Wed, 16 Sep 2015 06:58:32 -0400 Received: by wicfx3 with SMTP id fx3so67133641wic.1 for ; Wed, 16 Sep 2015 03:58:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=f6mv7zwRxMaDdD8AAAoEJu8iysIRHWqLUkPsiakMpSo=; b=k6X70F/EUGZC6l9fQlbM/0iPRPSfGJGZ17XyYcL/R3oQrN7Mb4P+RLgRvRd1UZtyq7 35Gq1ny+H9QfwIvAOIiEbJozqqLhk/MtAZhk4SJcECfutcWswlJzSk/XC+kJPAF2ogLY Ch1dj2V6d6UFC1cfQy7c41nTaKBBeAxwtK7PlbMBe4+n6Q+c39+9oNaflDVR0TfELs8W CfyyTYwuB2r/iSF2zHuAnhEhv3RiqjWwA3iBrXudkql72FNSfsd8X6vHo0qwE2x97Mob pTszFUsJ+O5dEbNnx46AtxwNbAWKWSL8tQrf/sKUCcMHvMswhcrZ2SD+jl5JJqWa0f3X DfJg== X-Received: by 10.194.19.169 with SMTP id g9mr48977575wje.64.1442401108789; Wed, 16 Sep 2015 03:58:28 -0700 (PDT) Received: from [192.168.0.127] ([62.189.198.114]) by smtp.googlemail.com with ESMTPSA id pk7sm14181399wjb.2.2015.09.16.03.58.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Sep 2015 03:58:28 -0700 (PDT) To: internals@lists.php.net References: <55DDA4C9.9040603@gmail.com> <3C69BF4B-52E6-4D04-8601-8D23DFCC538E@craigfrancis.co.uk> <55DDD60F.5090509@gmail.com> <8C74463E-DBA2-4015-8159-0B44D973387F@craigfrancis.co.uk> <55DE0907.6040904@gmail.com> <1F615BCD-1B9B-4C51-A210-869F1AA1F6E3@craigfrancis.co.uk> <55E5EBBF.6020803@gmail.com> <0BA3A129-D356-4781-B6DE-E2B5A7924AE2@craigfrancis.co.uk> <55E6EC36.6090301@gmail.com> <9AF329EC-99A5-412D-A52B-432627A5520F@gmail.com> <6F4D91EE-B56E-4B83-B1AF-598C3F6897FC@craigfrancis.co.uk> <55F07BA4.2000204@gmail.com> <55F6B911.9080400@gmail.com> <96BE7F01-D04B-483B-B1A3-B45CED6DFCDC@craigfrancis.co.uk> <55F6F08C.1020506@gmail.com> <0BEF6D82-CB5F-49F6-A3A4-3267924A0CDA@thesba.com> <55F78D90.7090601@php.net> <55F7CE3E.1040804@lsces.co.uk> <55F93E67.3000806@gmail.com> <55F945F7.8010402@lsces.co.uk> Message-ID: <55F94B25.8070603@gmail.com> Date: Wed, 16 Sep 2015 11:57:41 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <55F945F7.8010402@lsces.co.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP 7.1 - Address PHPSadness #28? From: rowan.collins@gmail.com (Rowan Collins) Lester Caine wrote on 16/09/2015 11:35: > If you are working with an array then fine, but we are talking about > variables here not arrays. isset($i) is a local variable so 'which array > is the variable is hiding in' applies? No, it's not hiding in any array, and I agree that array_key_exists() is not the right function to use. However, I have still yet to see any use case where it would be necessary or useful to detect - at runtime, rather than in static analysis for debugging - that $i has never been initialised, vs it having been initialised to null. Regards, -- Rowan Collins [IMSoP]