Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44353 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66571 invoked from network); 18 Jun 2009 14:37:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jun 2009 14:37:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.152 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 72.14.220.152 fg-out-1718.google.com Received: from [72.14.220.152] ([72.14.220.152:32871] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AC/61-58950-0115A3A4 for ; Thu, 18 Jun 2009 10:37:05 -0400 Received: by fg-out-1718.google.com with SMTP id 16so352151fgg.0 for ; Thu, 18 Jun 2009 07:37:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=x9Cn+wqp3HJI5WoyTG9Ts/W6yFNlPztX2BgMAY9wzUs=; b=wIvv91ocihLRF20ytgpKa2qaSNX5DJFiccLyDrJd5lZaS8JCX5rX8njUZ4lu9xVA0g IjCo3S7LDfoU79N53osX4JMJSWaMDf67GbJoHCGrWXiDdmCQ/NdMicsfbYtGLSBM8Nw/ 1rgA2J+Gnsv1wuvyoJgycXAu2VvTdR7868fEU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=L8DvsO0DzwmII0PJD2O5WjM7loP2qaTlZF0/zNHenKFkZ9LmQWXwlNYcajKohHBiIw tpEDL8ol+V++pnCszdRSZ7388CwmD5/R/+OPGDtfg29q7xCraPkOKhidbG3ly/Bcwn4y VhS7CKdaCKQlaUYP38Cd0ETCXXx3HWJGL4yuc= MIME-Version: 1.0 Received: by 10.86.51.2 with SMTP id y2mr2094688fgy.3.1245335820741; Thu, 18 Jun 2009 07:37:00 -0700 (PDT) In-Reply-To: References: <4C598D91E2B74BB28AD012E24E425A78@pc> Date: Thu, 18 Jun 2009 16:37:00 +0200 Message-ID: To: Lukas Kahwe Smith Cc: Carsten Wiedmann , internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] NaN still broken on Windows builds? From: pierre.php@gmail.com (Pierre Joye) On Thu, Jun 18, 2009 at 4:15 PM, Lukas Kahwe Smith wrote: > > On 24.05.2009, at 11:53, Carsten Wiedmann wrote: > >> Hello, >> >>> var_dump(NAN); // float(0), should be float(NAN) >>> $realNaN = sqrt(-1); >>> var_dump($realNaN); // float(NAN) >>> var_dump($realNaN == $realNaN); // true, should be false, NaN should >>> never match NaN >> >> That's interesting. With my own 5.2.9 build (vc6), I have "false" in the >> last test (comparing the variable): >> | # php -n -r "var_dump(NAN);$n=sqrt(-1);var_dump($n);var_dump($n==$n);" >> | float(0) >> | float(NAN) >> | bool(false) >> >> With the official 5.2.9 or 5.2.10-dev builds it's "true" on the same >> machine >> (xp sp3). >> >> >> BTW: is_nan($realNaN) is working with the official build. > > > is this fixed? and if not .. is there a bug ticket open? It is fixed (there was a bug, do not have it at hand). -- Pierre http://blog.thepimp.net | http://www.libgd.org