Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44044 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29645 invoked from network); 24 May 2009 09:53:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 May 2009 09:53:40 -0000 Authentication-Results: pb1.pair.com header.from=news@ger.gmane.org; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=php-php-dev@m.gmane.org; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain m.gmane.org designates 80.91.229.2 as permitted sender) X-PHP-List-Original-Sender: php-php-dev@m.gmane.org X-Host-Fingerprint: 80.91.229.2 main.gmane.org Linux 2.5 (sometimes 2.4) (4) Received: from [80.91.229.2] ([80.91.229.2:56108] helo=ciao.gmane.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C9/A2-13990-F19191A4 for ; Sun, 24 May 2009 05:53:38 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M8AOa-0004pM-9I for internals@lists.php.net; Sun, 24 May 2009 09:53:32 +0000 Received: from dslb-084-057-132-210.pools.arcor-ip.net ([84.57.132.210]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 May 2009 09:53:32 +0000 Received: from carsten_sttgt by dslb-084-057-132-210.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 May 2009 09:53:32 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Sun, 24 May 2009 11:53:12 +0200 Lines: 22 Message-ID: References: <4C598D91E2B74BB28AD012E24E425A78@pc> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: dslb-084-057-132-210.pools.arcor-ip.net User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <4C598D91E2B74BB28AD012E24E425A78@pc> Sender: news Subject: Re: [PHP-DEV] NaN still broken on Windows builds? From: carsten_sttgt@gmx.de (Carsten Wiedmann) 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. Regards, Carsten