Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88430 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47251 invoked from network); 23 Sep 2015 08:38:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Sep 2015 08:38:44 -0000 Authentication-Results: pb1.pair.com header.from=mike.php.net@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=mike.php.net@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.169 as permitted sender) X-PHP-List-Original-Sender: mike.php.net@gmail.com X-Host-Fingerprint: 209.85.212.169 mail-wi0-f169.google.com Received: from [209.85.212.169] ([209.85.212.169:32957] helo=mail-wi0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A3/83-10948-31562065 for ; Wed, 23 Sep 2015 04:38:43 -0400 Received: by wiclk2 with SMTP id lk2so228090987wic.0 for ; Wed, 23 Sep 2015 01:38:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Fhoe0GFz1l2p+S9q0FnMOEOJkFZSJLLIg0gnya5y0P4=; b=us2ia9fYkIhLtzPuDQvJHaedrxjKCBPisCIZ7zuRcRos10ZGZsjn4wHrVFF25qbqXg 9z1WSlWiwy+4pbDkfFOP4GCUNuRfOtG3EgIWxVJD4iRj0+FjF1ON2X6UmvanXKrPmj5N nTfqx874DLnZGS7D7664RqHYCRu+OnNH8oz+Erw7+ffPZBMdTA73BVMXnFSzcYw9KIo2 HmGQIjj83jhvk5c4EmvW+FkvxhpcSdkgYUsYsTw+brZyYhgHNOk2LloBld8wZGntGnfO PbBj1wmvnTkev+H/cfTE7y88LW7r3/AEFb2lw/1JihjleGvPogquSEeTvuw4xtQiKRNs ZHyQ== X-Received: by 10.194.7.232 with SMTP id m8mr23020968wja.56.1442997520006; Wed, 23 Sep 2015 01:38:40 -0700 (PDT) Received: from lepisma.bemi (89-104-28-113.customer.bnet.at. [89.104.28.113]) by smtp.gmail.com with ESMTPSA id he3sm6011195wjc.48.2015.09.23.01.38.38 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Sep 2015 01:38:39 -0700 (PDT) Sender: Michael Wallner Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) In-Reply-To: <9B86E351-089D-4356-BC8A-F683BA31D1A8@gmail.com> Date: Wed, 23 Sep 2015 10:38:37 +0200 Cc: Lester Caine , internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: 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: Rowan Collins X-Mailer: Apple Mail (2.2104) Subject: Re: [PHP-DEV] PHP 7.1 - Address PHPSadness #28? From: mike@php.net (Michael Wallner) > On 19 09 2015, at 23:22, Rowan Collins = wrote: >=20 > On 19 September 2015 15:49:55 BST, Lester Caine = wrote: >> On 19/09/15 13:15, Rowan Collins wrote: >> If there was a bug with 'isset' it is that it returns false for a >> variable that IS SET to null. >=20 > I honestly think that the only problem there is the name. If instead = of isset() and empty() we had quiet_is_null and quiet_boolval, nobody = would be the slightest bit surprised by their behaviour, and people = looking to see if an array key exists would be more likely to find = array_key_exists. >=20 >=20 >> if the variable does not exist there is no way of testing for that >> state >> prior to calling is_null() >=20 > Correct, there is no way of testing for that full stop. There is, though, not sure if already mentioned: array_key_exists(=E2=80=9Cvar=E2=80=9D, get_defined_vars()) && = is_null($var)