Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88448 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17293 invoked from network); 23 Sep 2015 18:27:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Sep 2015 18:27:34 -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.177 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.177 mail-wi0-f177.google.com Received: from [209.85.212.177] ([209.85.212.177:37639] helo=mail-wi0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 03/90-13106-31FE2065 for ; Wed, 23 Sep 2015 14:27:32 -0400 Received: by wicfx3 with SMTP id fx3so81923288wic.0 for ; Wed, 23 Sep 2015 11:27:29 -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=PCIHxB/WHrMgmCFF0Ly0nxt0o/Ntvkxu3WvpkUB2DVM=; b=iXfTqSro85YI9idZ40kSMraZe1afGgqIISkCnaYUdZxJ/ljPI5V+DmfgmoNIgvex1R QSinGYvkreksd3OtepqG9aKTfg+cYGRY1Azf1fGySRD48E+4is88plCxlVxxytMflQCK WDCy5vsc/nOdiHQtTutFcDUTLJrvgDNBYNUNXhzqJ/tOqeWIW+dzJu2izniz20P/o5Cq eD9+mPvZoKgPbKPs/+ZIDXTgT+bzmIOuPSPX5ehn31engAwlMqZHQR9xRiSQOE3Kbb5x 935Z/CnjvnSvn3Rfaq+gONZsw0bed4NYwG1Ac/9opl9W3KGG5MiFeUEaylhmN8hCu/N7 H6LA== X-Received: by 10.180.240.172 with SMTP id wb12mr5576996wic.64.1443032849276; Wed, 23 Sep 2015 11:27:29 -0700 (PDT) Received: from [192.168.0.119] ([62.189.198.114]) by smtp.googlemail.com with ESMTPSA id cx3sm8498477wjc.27.2015.09.23.11.27.28 for (version=TLSv1/SSLv3 cipher=OTHER); Wed, 23 Sep 2015 11:27:28 -0700 (PDT) To: internals@lists.php.net References: <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> <56009C96.5090504@php.net> <56013228.50504@gmail.com> <5601E01E.6080606@php.net> <56027C79.9020404@gmail.com> <5602BFB3.7090707@php.net> <5602DE27.4080500@lsces.co.uk> Message-ID: <5602EEF8.2090500@gmail.com> Date: Wed, 23 Sep 2015 19:27:04 +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: <5602DE27.4080500@lsces.co.uk> Content-Type: text/plain; charset=utf-8; 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 23/09/2015 18:15: > On 23/09/15 17:37, Stig Bakken wrote: >> I'm still in favor of having a variable_exists('varname') function though. > We had it ... > https://bugs.php.net/bug.php?id=24274 > Actually that looks like what is currently being proposed as exists() - a swiss-army knife function based on isset() which is called as though you're examining the value. Instead of this: variable_exists($foo): yes (should be yes) unset($foo); variable_exists($foo): no (should be no) variable_exists($bar): no (should be no) My suggestion (with which I believe Stig was agreeing) is this: variable_exists('foo'): yes (should be yes) unset($foo); variable_exists('foo'): no (should be no) variable_exists('bar'): no (should be no)