Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44352 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61124 invoked from network); 18 Jun 2009 14:15:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jun 2009 14:15:24 -0000 Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 88.198.8.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 88.198.8.16 bigtime.backendmedia.com Linux 2.6 Received: from [88.198.8.16] ([88.198.8.16:33928] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DB/50-58950-AFB4A3A4 for ; Thu, 18 Jun 2009 10:15:23 -0400 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id 837241EBC014; Thu, 18 Jun 2009 14:18:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from bigtime.backendmedia.com ([127.0.0.1]) by localhost (bigtime.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YhieK55rQCEj; Thu, 18 Jun 2009 16:18:13 +0200 (CEST) Received: from [192.168.80.70] (unknown [195.226.16.50]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by bigtime.backendmedia.com (Postfix) with ESMTP id 783881EBC013; Thu, 18 Jun 2009 16:18:13 +0200 (CEST) Cc: internals@lists.php.net Message-ID: To: Carsten Wiedmann In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Date: Thu, 18 Jun 2009 16:15:03 +0200 References: <4C598D91E2B74BB28AD012E24E425A78@pc> X-Mailer: Apple Mail (2.935.3) Subject: Re: [PHP-DEV] NaN still broken on Windows builds? From: mls@pooteeweet.org (Lukas Kahwe Smith) 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? regards, Lukas Kahwe Smith mls@pooteeweet.org