Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36988 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18260 invoked from network); 12 Apr 2008 11:08:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Apr 2008 11:08:16 -0000 Authentication-Results: pb1.pair.com header.from=stefan.walk@gmail.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=stefan.walk@gmail.com; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain gmail.com does not designate 62.75.137.136 as permitted sender) X-PHP-List-Original-Sender: stefan.walk@gmail.com X-Host-Fingerprint: 62.75.137.136 fuer-et.de Linux 2.5 (sometimes 2.4) (4) Received: from [62.75.137.136] ([62.75.137.136:47200] helo=eve.fuer-et.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9E/02-05766-E1890084 for ; Sat, 12 Apr 2008 07:08:15 -0400 Received: from [192.168.178.34] (drms-590d5752.pool.einsundeins.de [89.13.87.82]) by eve.fuer-et.de (Postfix) with ESMTP id 22A491C59DB4; Sat, 12 Apr 2008 11:08:12 +0000 (UTC) Message-ID: <48009818.80307@gmail.com> Date: Sat, 12 Apr 2008 13:08:08 +0200 User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: RQuadling@GoogleMail.com CC: internals@lists.php.net References: <10845a340804120340j4cca398bub5be876a8ce4ba9b@mail.gmail.com> In-Reply-To: <10845a340804120340j4cca398bub5be876a8ce4ba9b@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] '1.8' == 1.8 can return false or yet another example of the uselessness of type juggling. From: stefan.walk@gmail.com (Stefan Walk) Richard Quadling schrieb: > On 12/04/2008, Rasmus Lerdorf wrote: >> There is no bug here. Please read: >> >> http://docs.sun.com/source/806-3568/ncg_goldberg.html >> >> -Rasmus > > So, would I be right in thinking that the only time type-juggling is > 100% successful is between strings and integers? I suggest you read the page that Rasmus referred to. The effect has nothing to do with type conversions, it happens with pure float computations too. Regards, Stefan