Re: [RFC] Comparison and conversion inconsistency - need more info

From: Date: Sun, 10 Nov 2013 09:02:04 +0000
Subject: Re: [RFC] Comparison and conversion inconsistency - need more info
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-70073@lists.php.net to get a copy of this message
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

« previous php.internals (#70073) next »