Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75242 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13179 invoked from network); 4 Jul 2014 07:18:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jul 2014 07:18:38 -0000 Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.219.51 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.219.51 mail-oa0-f51.google.com Received: from [209.85.219.51] ([209.85.219.51:40670] helo=mail-oa0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FD/60-06026-D4556B35 for ; Fri, 04 Jul 2014 03:18:37 -0400 Received: by mail-oa0-f51.google.com with SMTP id j17so1416546oag.24 for ; Fri, 04 Jul 2014 00:18:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=gV4IO8DxamwTFoCLJZBPNzV6dlJWzfQJKew0kJX5DBg=; b=tJVnWuxaPkl9Qe3Z4FlrvlZIQ0txW/RvD9QA+oVQQWM4KLet7ic2tU3Kg4PId+MlYL s1c/NPrGmtc5SRY24laochiBSluf0ifUki6qo2ADyt+slCzbtC0A0JBY/RKMfQpY9jP8 oRIVwpEkx4z20aaaE4nnyzkp7GenvG4hHlByk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=gV4IO8DxamwTFoCLJZBPNzV6dlJWzfQJKew0kJX5DBg=; b=kfS88GJmVE9qWeGvrlo+RMxwYuEoHbh+NuEImvuKitZyciNe5J7P1Fla30HTYo6/3O mwY+2rvWgOT/LVO/tF5sQVZK7ljTAIqeCLh66GYvHuwM/oQATMT8v1TrxS5e6CY5Vm7W /psSqpmigviD2GfTP/my6Zigw/PYEAKh0gtg7Td1e0BTt4P4jWrQhSKbQpMmQRS0dDBb lKfExJX4H2/5YOOHVDhDF3Biz/E+Fn3wUnEeaBMMHHmWr6zuZXAfNReMRdnxaOJ+N61K kRP9MGzClLBJ3ywoR/L1eS85A1f1obeCrpmraUxnr30K4lDLc+bA53jiFtHSCJWaW55j tZZA== X-Gm-Message-State: ALoCoQlQEPVtX94Rd76e7d0AS50icSHMYrYsSCxUp7xFt5k82pQZ5nopSuU4R0QrKUbW/yPajjmT MIME-Version: 1.0 X-Received: by 10.60.155.231 with SMTP id vz7mr10666200oeb.56.1404458314567; Fri, 04 Jul 2014 00:18:34 -0700 (PDT) Received: by 10.202.85.79 with HTTP; Fri, 4 Jul 2014 00:18:34 -0700 (PDT) In-Reply-To: References: Date: Fri, 4 Jul 2014 10:18:34 +0300 Message-ID: To: Kris Craig Cc: Xen , Pierre Joye , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] not_null function From: narf@devilix.net (Andrey Andreev) HI, Not any that I'm aware of, and I personally have never used is_null(). I share your opinion that we don't really need is_null(), but with BC in mind, I don't think it would get removed. Cheers, Andrey. On Fri, Jul 4, 2014 at 1:47 AM, Kris Craig wrote: >> $var !== null >> ! is_null($var) > > > Is there any *practical* difference between these two? I mean, aside from > performance? I still don't get why we need is_null() at all if the exact > same thing can be accomplished-- but with better performance-- with === > NULL. > > --Kris >