Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70075 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2722 invoked from network); 10 Nov 2013 09:15:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Nov 2013 09:15:24 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:49752] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 91/00-02577-AAE4F725 for ; Sun, 10 Nov 2013 04:15:23 -0500 Received: by mail-lb0-f170.google.com with SMTP id u14so2611371lbd.29 for ; Sun, 10 Nov 2013 01:15:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=p+o0IpJjj52Hk62G8de3LHJaTTkrSuEyxLJg5sNFFvA=; b=m8SBk4K2E+QvN28fRZyfj1DZz+HXzpeiED/OvafKp8a4UqaHpDiVwSonHwFyaTTBFH A6Zl9U7NKT1yDAmUs3NHes76NUkJ84g1YY8U956k0fZezOiFyQ+hWDBYrZPdX5ZiThWZ 5ehOFldn2WxewiYnx2AO7o3W49c9hCvwgYktbjRuKSFAeYeukoos2zwrC9QtXMEOXMnP TfSRPMC6tUvtZY6SylrGEJ/dvlynJUOBVIHgEt5/saivKduTl9UHgiEWeac91KLqs2QU HwjhEFWgnesa6lE+XRT53XhRhLdf5wS8OGN/h+17XmqEzCasu3JOpZLIKWprccXEnA0W 6vdA== X-Received: by 10.152.5.228 with SMTP id v4mr17537587lav.7.1384074918712; Sun, 10 Nov 2013 01:15:18 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.154.201 with HTTP; Sun, 10 Nov 2013 01:14:38 -0800 (PST) In-Reply-To: <905797983.20131110040719@cypressintegrated.com> References: <527DF228.1080108@sugarcrm.com> <527F3B9B.8040006@sugarcrm.com> <905797983.20131110040719@cypressintegrated.com> Date: Sun, 10 Nov 2013 18:14:38 +0900 X-Google-Sender-Auth: wBJI-ywTKmVUN1hVRK3ghW99hZ4 Message-ID: To: Sanford Whiteman Cc: Yasuo Ohgaki Content-Type: multipart/alternative; boundary=089e013d1a40df5b1304eacf0d29 Subject: Re: [PHP-DEV] [RFC] Comparison and conversion inconsistency - need more info From: yohgaki@ohgaki.net (Yasuo Ohgaki) --089e013d1a40df5b1304eacf0d29 Content-Type: text/plain; charset=UTF-8 Hi Sanford, On Sun, Nov 10, 2013 at 6:07 PM, Sanford Whiteman < swhitemanlistens-software@cypressintegrated.com> wrote: > > ----------------------------------- > > if (-1 < NULL) > > echo 'NULL is smaller'; > > else > > echo '-1 is smaller'; > > ----------------------------------- > > returns '-1 is smaller' as all of us expects. > > Please go over the conditions and the echos in this example one more > time. I think I understand your argument as I know languages that treat null/nil as special value. I just think min(-10000, -1000, -100, NULL, 100, 1000) returns NULL. is not following standard PHP comparison rules. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --089e013d1a40df5b1304eacf0d29--