Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88336 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75948 invoked from network); 18 Sep 2015 15:56:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Sep 2015 15:56:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=derokorian@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=derokorian@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.171 as permitted sender) X-PHP-List-Original-Sender: derokorian@gmail.com X-Host-Fingerprint: 209.85.212.171 mail-wi0-f171.google.com Received: from [209.85.212.171] ([209.85.212.171:36193] helo=mail-wi0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4A/F2-60254-2443CF55 for ; Fri, 18 Sep 2015 11:56:51 -0400 Received: by wicgb1 with SMTP id gb1so38333796wic.1 for ; Fri, 18 Sep 2015 08:56:47 -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=M/bMkTPuV9x2MUd7IvuvCm9Qb9i6WNWqH+MXZH0xKps=; b=KHk9nGKNIesm3wzEjWCEyeyJgv4gV0S+ZEtUXWEGNsyEzggJViOKKdUb9to6y+FtfL JxaNo9Kgqiw6xljrMGuQIl8udIlQxNIdMRPczmxTS0jG2RFscNTgxLpUN9RSuILgJikL E2A9So5mqpBfyeDo6jGwb2ScPcpa22IjfQheD8JXnyycG85ilfRcJwOQxHpWTMdOvSVw rt4okcuFsPX9T3ltgfEraDC/2JFgtBFzdDxru2kHGQvg2oqZHvNyIxORxKCXzu8kQiHW 5sQ1p52N5oyOcXOqLW8AK26CWXOox5iPTubIdhltS0RK182IZtNQwq4XlrPIX4xAZSGA wgZA== MIME-Version: 1.0 X-Received: by 10.180.105.234 with SMTP id gp10mr37157625wib.51.1442591807820; Fri, 18 Sep 2015 08:56:47 -0700 (PDT) Received: by 10.28.183.130 with HTTP; Fri, 18 Sep 2015 08:56:47 -0700 (PDT) In-Reply-To: <55FC2F2F.9060403@gmail.com> References: <55F6F08C.1020506@gmail.com> <0BEF6D82-CB5F-49F6-A3A4-3267924A0CDA@thesba.com> <55F72CA9.2060301@gmail.com> <09369945-76FE-4E08-9C2C-15FB0577AD27@thesba.com> <55F752E7.9070801@gmail.com> <55F9B4C7.3050700@gmail.com> <440C64A2-4B4F-4AEF-ACE3-F3A6637EBAB6@thesba.com> <55F9D704.5050002@lsces.co.uk> <55F9EFA2.9020908@lsces.co.uk> <0022A1D9-DC37-4F49-B58E-FBED5AF872BA@gmail.com> <55F9FAB3.2050100@lsces.co.uk> <55FB19CB.7080707@gmail.com> <55FB3117.5040204@lsces.co.uk> <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> Date: Fri, 18 Sep 2015 09:56:47 -0600 Message-ID: To: Rowan Collins Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=f46d044288b242d73905200794e5 Subject: Re: [PHP-DEV] PHP 7.1 - Address PHPSadness #28? From: derokorian@gmail.com (Ryan Pallas) --f46d044288b242d73905200794e5 Content-Type: text/plain; charset=UTF-8 On Fri, Sep 18, 2015 at 9:35 AM, Rowan Collins wrote: > > > If what you want to write is "if ( ! exists($foo) || is_null($foo) ) { ... > }" then that is exactly what "if ( isset($foo) )" will give you, without > any notices whatsoever. Conversely, if what you want to write is "if ( exists($foo) && is_null($foo) ) { ... }" then there is no way to do that currently. I personally agree with you Rowan, that this feels like an unnecessary addition to the language. On the other hand, I see no reason it shouldn't exist if its a feature users want, especially considering its impossible to implement in userland. --f46d044288b242d73905200794e5--