Newsgroups: php.general,php.internals Path: news.php.net Xref: news.php.net php.general:227482 php.internals:21238 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95886 invoked by uid 1010); 15 Dec 2005 17:38:42 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 95871 invoked from network); 15 Dec 2005 17:38:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Dec 2005 17:38:42 -0000 X-Host-Fingerprint: 195.121.247.6 smtp15.wxs.nl NetCache Data OnTap 5.x Received: from ([195.121.247.6:36535] helo=smtp15.wxs.nl) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 0A/1A-23096-12AA1A34 for ; Thu, 15 Dec 2005 12:38:42 -0500 Received: from [192.168.1.2] (ip3e830243.speed.planet.nl [62.131.2.67]) by smtp15.wxs.nl (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0IRJ00JLIVOE9U@smtp15.wxs.nl>; Thu, 15 Dec 2005 18:38:38 +0100 (CET) Date: Thu, 15 Dec 2005 18:38:54 +0100 In-reply-to: <43A1A7AF.5000601@colder.ch> To: "colder.ch" Cc: php-dev , php-general@lists.php.net Message-ID: <43A1AA2E.8050104@php.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 References: <43A0F0BB.6080009@chiaraquartet.net> <43A1A588.5060202@telenet.be> <43A1A7AF.5000601@colder.ch> Subject: Re: [PHP-DEV] why is '01' == '1.'? From: tularis@php.net ("M. Sokolewicz") actually, you're right in that (colder.ch) since what happens here is a conversion. This applies to all these 'logic cases' posted. When something is converted to something else, as part of a process, you can't state that the process returns unique results (meaning the result always points back to the same input), and as such you can't state a lot of various things posted in this thread. But this is all OT, and really should be moved off the list, or at least to the generals list. - tul colder.ch wrote: > 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 >> >>