Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45125 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53254 invoked from network); 28 Jul 2009 16:49:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jul 2009 16:49:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.154 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 72.14.220.154 fg-out-1718.google.com Received: from [72.14.220.154] ([72.14.220.154:26505] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8C/F4-60186-B0C2F6A4 for ; Tue, 28 Jul 2009 12:49:16 -0400 Received: by fg-out-1718.google.com with SMTP id 13so761582fge.0 for ; Tue, 28 Jul 2009 09:49:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=vYd0Ti+igzoIFAPU86Ek804eZO6rZHLxY8aMgLWVlxI=; b=GQAjrz/t6ID+Z+9B08ho7xfcW3S+akPUukvWl+/rannSNzFXXE4hc+KZ1Ibh5GBy/k Jc69Mvoiwssf37+NLG9HMuwD1INyV2NtSBEvNIyYk0qOYGCodfRkCLOo8BDhz7AZrRlS hh0PMgUegKLoIjP+BbRXfvovllAfjjuyIz5Eg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=Mv4QgQpogwNPvk6RXE1FzM9e6pCeeG/dW0OdXzZjykil/IgwpJ2tL//ZnC63m3nLLN WnAq4IKTlGcmBUsYL/6sH7zkDw9zsbTvtmHbnPcwsgnbcSkGpJ4DhkVdysA90UXzpuMU OKCsS1sn/ubcoi/iOc/KLJOO94DWmGORDEIg8= MIME-Version: 1.0 Sender: kalle.php@gmail.com Received: by 10.86.68.18 with SMTP id q18mr3591970fga.68.1248799752501; Tue, 28 Jul 2009 09:49:12 -0700 (PDT) In-Reply-To: References: Date: Tue, 28 Jul 2009 18:49:12 +0200 X-Google-Sender-Auth: c7e911de13fbc48e Message-ID: <2dedb8a0907280949g7177c8car29970316268b7cff@mail.gmail.com> To: Lupus Michaelis Cc: Christian Seiler , Internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] PHP floating point history and behaviour. From: kalle@php.net (Kalle Sommer Nielsen) Hi 2009/7/28 Lupus Michaelis : > =A0Hi, > > =A0I'm wondering where the Zend/zend_float.h include file is used. I'm > interested in because I'm checking the behaviour variation between PHP4 a= nd > PHP5 (*), and floating point management seems to be fixed for all platfor= ms > in an early version of PHP5 (revision r270301). > > By the way, this alteration change something for Intel 32 bit or nothong= ? > It belongs the IEEE 754 ? > The floating point behaviour was changed in PHP 5.3, as in this RFC by Christian Seiler (cc'ed): http://wiki.php.net/rfc/rounding You can find where the zend_float.h file is included by a simple grep: C:\php\src\> grep -ri "zend_float" * Zend/zend_execute_API.c:#include "zend_float.h" Zend/zend_float.c:#include "zend_float.h" Zend/zend_float.h:/* $Id: zend_float.h 277398 2009-03-18 10:18:10Z dmitry $= */ Zend/zend_float.h:#ifndef ZEND_FLOAT_H Zend/zend_float.h:#define ZEND_FLOAT_H --=20 regrads, Kalle Sommer Nielsen kalle@php.net