Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21237 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92455 invoked by uid 1010); 15 Dec 2005 17:28:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 92440 invoked from network); 15 Dec 2005 17:28:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Dec 2005 17:28:22 -0000 X-Host-Fingerprint: 195.186.18.64 mail17.bluewin.ch Received: from ([195.186.18.64:63383] helo=mail17.bluewin.ch) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 62/B9-23096-5B7A1A34 for ; Thu, 15 Dec 2005 12:28:21 -0500 Received: from [10.0.0.1] (83.76.36.100) by mail17.bluewin.ch (Bluewin 7.2.069.1) id 43852AEE00510EB4 for internals@lists.php.net; Thu, 15 Dec 2005 17:28:18 +0000 Message-ID: <43A1A7AF.5000601@colder.ch> Date: Thu, 15 Dec 2005 18:28:15 +0100 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: php-dev References: <43A0F0BB.6080009@chiaraquartet.net> <43A1A588.5060202@telenet.be> In-Reply-To: <43A1A588.5060202@telenet.be> X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] why is '01' == '1.'? From: webmaster@colder.ch ("colder.ch") No, this rule of logic can't be applied : 2 == true and true == 10, but 2 != 10 It all depends on the types of the compared values. Hans Melis wrote: >a == b and a == c implies by the rules of logic that b == c > > -- Etienne Kneuss http://www.colder.ch/ colder@php.net