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

From: Date: Sun, 10 Nov 2013 19:59:25 +0000
Subject: Re: [RFC] Comparison and conversion inconsistency - need more info
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-70086@lists.php.net to get a copy of this message
( -1 < true ) // false, because the two compare equal and the comparison must return a bool ( min( -1,true ) ) // -1, because the two compare equal and -1 was passed first ( min( true,-1 ) ) // true, because the two compare equal and true was passed first Absolutely consistent with documentation. Pay attention to the final return type of a simple comparison vs. comparisons wrapped in the min() function. -- S.

« previous php.internals (#70086) next »