Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87924 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8429 invoked from network); 26 Aug 2015 04:37:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Aug 2015 04:37:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.45 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.45 mail-pa0-f45.google.com Received: from [209.85.220.45] ([209.85.220.45:34439] helo=mail-pa0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AA/D2-23604-4724DD55 for ; Wed, 26 Aug 2015 00:37:08 -0400 Received: by pabzx8 with SMTP id zx8so56308434pab.1 for ; Tue, 25 Aug 2015 21:37:05 -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=IiAv1//j9B0M1skBwM4/Pfxy/BHyca4p05K/ZuPPJC8=; b=NDeF6WVdfUvqor2osrErsrOpp2cpTTIo1amZwce1+98/5keGicP2CWVe2hXpN2UyFu h4pfLY61uuMLDeRH3R0NoBQuqgb1RoAeRfe/MshYxchr3bACRi9w8To9MW9YrDRlx0U4 Dr48ztJeH6nbVTofq+Blz5qWe9ygn1bfzXCmjLwmJhW090M4LP6aNt2yWZOAIhM1vvzr H+ii03pM3od6BcaDMMdEaw7jA2lRbBUEgbQ7RqjJ0oNUx//0VFVBMqNZHhTBfl5rRIjm 6SrBgEvZkgkJG823NCiW7IU+GWOB7nFjlsKNDmvJgrvmapwnIB7qjH2vWX3yVjjVbS5G oX0A== X-Received: by 10.68.175.3 with SMTP id bw3mr64149111pbc.106.1440563825379; Tue, 25 Aug 2015 21:37:05 -0700 (PDT) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by smtp.gmail.com with ESMTPSA id hz5sm22883725pbb.39.2015.08.25.21.37.04 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 25 Aug 2015 21:37:04 -0700 (PDT) To: Scott Arciszewski , PHP Internals References: Message-ID: <55DD4269.4090402@gmail.com> Date: Tue, 25 Aug 2015 21:36:57 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP 7.1 - Address PHPSadness #28? From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > Would anyone be interested in adding another helper like > isset()/empty() simply called exists() which would return true if the > variable is defined in the current scope (i.e. without raising an > E_NOTICE)? Not sure what the use case would be for this. For most practical purposes, isset/empty look completely fine. > It should be a simple change to add this function but it's too late > for 7.0 so, if there is any interest, I would respectfully put it off > until 7.1. It is simple, but not everything that is simple should be done. Especially when we talking about adding core functions. -- Stas Malyshev smalyshev@gmail.com