Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88433 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55512 invoked from network); 23 Sep 2015 09:58:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Sep 2015 09:58:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.179 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.179 mail-wi0-f179.google.com Received: from [209.85.212.179] ([209.85.212.179:33145] helo=mail-wi0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 98/A4-10948-7A772065 for ; Wed, 23 Sep 2015 05:58:00 -0400 Received: by wiclk2 with SMTP id lk2so231105544wic.0 for ; Wed, 23 Sep 2015 02:57:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:to:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=JLNw36Otur/56zZjEp9Z/zLYWEsG2jHNsIlhV04m54Y=; b=gsoCwvMI2YXgOfcM8xvqkKqqWC+FHN87qViMupTJLtcb+KrS41EiN4EkrlYvw0f5uA cBljWCP+inpMkMFypBYl5aoofdP6TVK112qstyjzoFSYZ8m2SpdD8B3oXofnRrL1mJYw 18dZuF0lA97uOYHfenmKX+d1AOiO6nhAd9MGz3NXr/99lEgBPM8/mSjq2kCC9m6B9Q+l ENPZY3q+E4KOUNNekFr9ssGf+YCHDfy1y4DELOFfVr1ri/AebyydZZWChJ9NFVVzWkCH 9Avnn685KSgpv5lqAxal1B4lg99FrPzsau9koKyxel7rV11Z2MLuSko4HPgipxcXE8lj aEDw== X-Received: by 10.180.188.101 with SMTP id fz5mr3271120wic.3.1443002276734; Wed, 23 Sep 2015 02:57:56 -0700 (PDT) Received: from [192.168.0.119] ([62.189.198.114]) by smtp.googlemail.com with ESMTPSA id p20sm7716460wie.5.2015.09.23.02.57.55 for (version=TLSv1/SSLv3 cipher=OTHER); Wed, 23 Sep 2015 02:57:56 -0700 (PDT) References: <55FB3A60.1040601@gmail.com> <55FB4270.7000204@lsces.co.uk> <55FB4969.7080600@gmail.com> <55FB5BA6.6050606@lsces.co.uk> <55FBF265.5000502@gmail.com> <55FBF7B7.4050603@lsces.co.uk> <55FC1A77.7090406@gmail.com> <55FC221A.7020108@lsces.co.uk> <55FC2588.6030809@gmail.com> <55FC2B17.3070909@lsces.co.uk> <55FC2F2F.9060403@gmail.com> <55FC33F1.3090903@lsces.co.uk> <55FC354B.5070209@gmail.com> <55FC39B2.5070005@lsces.co.uk> <55FC45C7.9010202@gmail.com> <55FC4991.1050903@lsces.co.uk> <7872E9F4-AE19-4681-B2EF-215751AE4CBE@thesba.com> <55FC5A14.8020301@gmail.com> <55FC8D53.3080904@lsces.co.uk> <93020C79-3920-4FC8-8B6B-F1D16C6C709C@gmail.com> <55FD7613.1080403@lsces.co.uk> <9B86E351-089D-4356-BC8A-F683BA31D1A8@gmail.com> To: internals@lists.php.net Message-ID: <5602778C.2070205@gmail.com> Date: Wed, 23 Sep 2015 10:57:32 +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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] PHP 7.1 - Address PHPSadness #28? From: rowan.collins@gmail.com (Rowan Collins) Michael Wallner wrote on 23/09/2015 09:38: >>> >>if the variable does not exist there is no way of testing for that >>> >>state >>> >>prior to calling is_null() >> > >> >Correct, there is no way of testing for that full stop. > There is, though, not sure if already mentioned: > > array_key_exists(“var”, get_defined_vars()) && is_null($var) I wondered if someone would mention that, but didn't want to drift too far from the point, which was the "prior to call is_null()" part of Lester's sentence was redundant, since the problem was entirely unrelated to is_null(). Regards, -- Rowan Collins [IMSoP]