Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70073 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99507 invoked from network); 10 Nov 2013 09:02:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Nov 2013 09:02:51 -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.215.42 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-la0-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:61643] helo=mail-la0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C5/33-14014-ABB4F725 for ; Sun, 10 Nov 2013 04:02:50 -0500 Received: by mail-la0-f42.google.com with SMTP id ec20so684032lab.1 for ; Sun, 10 Nov 2013 01:02:45 -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=ktCt+DiYHhg2D/+UQPgsmHd2oCm8FKttuCJP4WWeiZg=; b=epU1gdhzpxBzLRdG1ZfArU7gOHSpmKRQYjH3Mo8QT/lfRmzw42Wb8sK550Mhb70LfC 5CtSocAT5j45Vdjq78T61Pa4wZ2Su6odfrxtBozUtIutmEeQZp0z5Y18ijRjo98y9djm W5Hl1ucKx2yje19rJM9SikclcXf4+To4LgZyDvb0F59DYS29u/ffDtQ9RcDXORrv0Boc TM77YTADUsniVHebDwwASvXzpN5uQyEgtml/8bPh0IhmdeSPSHSohEYH+devYZLjJNxx r9YE2k66qqbi2V6lq4+ODoyllyhafROmkRR4qdAMlSTJlszziVTdtwmQ+gK0t+n4Ntjw 9lMw== X-Received: by 10.152.116.109 with SMTP id jv13mr396464lab.30.1384074164877; Sun, 10 Nov 2013 01:02:44 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.154.201 with HTTP; Sun, 10 Nov 2013 01:02:04 -0800 (PST) In-Reply-To: <416659913.20131110035553@cypressintegrated.com> References: <527DF228.1080108@sugarcrm.com> <416659913.20131110035553@cypressintegrated.com> Date: Sun, 10 Nov 2013 18:02:04 +0900 X-Google-Sender-Auth: Iazj2H2a6LXRgSrtDkRE44mFIuQ Message-ID: To: Sanford Whiteman Cc: Yasuo Ohgaki Content-Type: multipart/alternative; boundary=001a11c3675ef0c0ae04eacee0fb Subject: Re: [PHP-DEV] [RFC] Comparison and conversion inconsistency - need more info From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11c3675ef0c0ae04eacee0fb Content-Type: text/plain; charset=UTF-8 Hi Sanford, On Sun, Nov 10, 2013 at 5:55 PM, Sanford Whiteman < swhitemanlistens-software@cypressintegrated.com> wrote: > To me, inconsistent would be: > > ( -1 > NULL ) // bool(false) > ( -1 < NULL) // bool(true) > min(-1,NULL)) // NULL > PHP is not SQL :) I think almost all users are not expecting min(-10000, -1000, -100, NULL, 100, 1000) returns NULL. Besides, the manual is not explaining this weird behavior at all. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11c3675ef0c0ae04eacee0fb--