Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87920 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98291 invoked from network); 26 Aug 2015 03:16:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Aug 2015 03:16:49 -0000 Authentication-Results: pb1.pair.com header.from=theanomaly.is@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=theanomaly.is@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.175 as permitted sender) X-PHP-List-Original-Sender: theanomaly.is@gmail.com X-Host-Fingerprint: 209.85.217.175 mail-lb0-f175.google.com Received: from [209.85.217.175] ([209.85.217.175:35416] helo=mail-lb0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 72/41-23604-E9F2DD55 for ; Tue, 25 Aug 2015 23:16:48 -0400 Received: by lbcbn3 with SMTP id bn3so111563554lbc.2 for ; Tue, 25 Aug 2015 20:16:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ocGbRPMYgifseyzM4BBty1GSwuuPBY2niAypjGlItXY=; b=Cf/H9vw0yYxgRTD3dH4ACdc39RmVIjWksoiJWDZ0Gn8SS/SYGnHWoBQZcC/E5gMGzC ZUkP6G/FQxffexq1bYsrCUCgK/HxCnzLAAQFRZ5arGjLj23b6Z9Cy6q1ri51TZNp/1SZ hSH4y4yPimuGFQqSM4ofkpuOlgnCd5ZnCRWwhlkZxXNa0tfeCK3zFkW1boWImgb5I32q 6UZPAdi3Zt+KvmlCE6Dkz6SAEgf24y0yST6BqIJPFL/n3yTB/vk3WuzcQmc65hcCBYS1 iGOSsg9ymb3AY6LtdM5dRBA4pRa6xEPZ9KWaT+EwC0awU6uBpZ5r3rnF5UaVwxAdwK1i PLwg== MIME-Version: 1.0 X-Received: by 10.112.151.6 with SMTP id um6mr28073427lbb.85.1440559003994; Tue, 25 Aug 2015 20:16:43 -0700 (PDT) Received: by 10.25.200.196 with HTTP; Tue, 25 Aug 2015 20:16:43 -0700 (PDT) In-Reply-To: References: Date: Tue, 25 Aug 2015 23:16:43 -0400 Message-ID: To: Scott Arciszewski Cc: PHP Internals Content-Type: multipart/alternative; boundary=047d7b3a80e6b60fdf051e2e477d Subject: Re: [PHP-DEV] PHP 7.1 - Address PHPSadness #28? From: theanomaly.is@gmail.com (Sherif Ramadan) --047d7b3a80e6b60fdf051e2e477d Content-Type: text/plain; charset=UTF-8 Yes, because all undefined variables in PHP are implicitly null. As far as PHP is concerned, if it's null, it's by definition _not defined_. Also, still not seeing where a NOTICE is involved here? Those functions never give errors. What is the usefulness of a function that merely returns true when a variable is null? On Tue, Aug 25, 2015 at 11:13 PM, Scott Arciszewski wrote: > On Tue, Aug 25, 2015 at 11:11 PM, Sherif Ramadan > wrote: > > That's exactly what isset() does. isset/empty never raise errors. > > > > On Tue, Aug 25, 2015 at 11:09 PM, Scott Arciszewski > > > wrote: > >> > >> Hi everybody, > >> > >> 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)? > >> > >> 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. > >> > >> Scott Arciszewski > >> Chief Development Officer > >> Paragon Initiative Enterprises > >> > >> -- > >> PHP Internals - PHP Runtime Development Mailing List > >> To unsubscribe, visit: http://www.php.net/unsub.php > >> > > > http://phpsadness.com/sad/28 > https://3v4l.org/2vrKG > > Not quite. > > Scott Arciszewski > Chief Development Officer > Paragon Initiative Enterprises > --047d7b3a80e6b60fdf051e2e477d--