Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60843 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86122 invoked from network); 15 Jun 2012 02:17:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jun 2012 02:17:58 -0000 Authentication-Results: pb1.pair.com header.from=tjerk.meesters@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tjerk.meesters@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.170 as permitted sender) X-PHP-List-Original-Sender: tjerk.meesters@gmail.com X-Host-Fingerprint: 209.85.160.170 mail-gh0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:43565] helo=mail-gh0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/B8-39100-55B9ADF4 for ; Thu, 14 Jun 2012 22:17:57 -0400 Received: by ghbg2 with SMTP id g2so2210982ghb.29 for ; Thu, 14 Jun 2012 19:17:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=RPAmBmVv+487fbEDucBU6vu0DHZ0I2vozPZ4Y74tys4=; b=bIkuGtrFHUgqboVwEJueq2wt0JrSXP1iX67r74Yowc+aGJweUEWpTFFGAm+YF2aQsJ BMQ+h/bOJTcD59FIauvJ4x66cS6QIQ/kpfJHgWBDWyNbAb1w7oDN68SxzeyeMb/Fd6Qg CKg02VOJkenu2TT2Ej0hfcpyOIrH0bDLQGcu4Yv4weQ5L2hUfZa8LTFT+VmlAaQ0J5Vb CY+SzaHa0NbT3slMAc74M+CEUaa89vnRXU8gRfRMsMGJoOS99CtvCA2E1jl5JUq366si shixhQ4CfW0iJFmZ0GEmjPiAihZ7hm161BM5a//h3V0U2N7r10RpGcViShf1tuEK+Enz 8/fg== MIME-Version: 1.0 Received: by 10.236.78.227 with SMTP id g63mr6113250yhe.87.1339726675334; Thu, 14 Jun 2012 19:17:55 -0700 (PDT) Sender: tjerk.meesters@gmail.com Received: by 10.146.197.4 with HTTP; Thu, 14 Jun 2012 19:17:55 -0700 (PDT) In-Reply-To: <4FDA8833.1040408@gmail.com> References: <4FAF1EE5.5010409@sugarcrm.com> <4FDA8833.1040408@gmail.com> Date: Fri, 15 Jun 2012 10:17:55 +0800 X-Google-Sender-Auth: wrmTN5Jcp2iclwjbEkjlJBkFE-Q Message-ID: To: Hartmut Holzgraefe Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] bug 54547 From: datibbaw@php.net (Tjerk Anne Meesters) On Fri, Jun 15, 2012 at 8:56 AM, Hartmut Holzgraefe wrote: > Too late to raise this now anyway, but ... > > On 13.05.2012 04:39, Stas Malyshev wrote: >> I know this was discussed a number of times here, but just to bring it >> to a conclusion - I intend to apply patch in the bug report - which >> removes conversion for strings that do not convert to integers - to 5.4. >> If anybody sees anything that breaks because of this please tell. > > "12345678901234567890" == "12345678901234567890.0" > > used to be true, is now false ... i'd still say that's ok though as > it is a case of "never compare floats for equality" here, now that > the decimal clearly says that at least the right side is supposed > to be float, not integer ... I don't think this is a case of "never compare floats for equality", as: 12345678901234567890.0 == 12345678901234567890.1 The number is simply too big, even for a float, to handle reliably. In fact number_format(12345678901234567890.0, 1, '', '') == '123456789012345671680' > > -- > hartmut > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > -- -- Tjerk