Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40313 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20286 invoked from network); 7 Sep 2008 13:51:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Sep 2008 13:51:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=chris_se@gmx.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=chris_se@gmx.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.net designates 213.165.64.20 as permitted sender) X-PHP-List-Original-Sender: chris_se@gmx.net X-Host-Fingerprint: 213.165.64.20 mail.gmx.net Linux 2.5 (sometimes 2.4) (4) Received: from [213.165.64.20] ([213.165.64.20:45022] helo=mail.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 39/15-23880-E5CD3C84 for ; Sun, 07 Sep 2008 09:51:27 -0400 Received: (qmail invoked by alias); 07 Sep 2008 13:51:23 -0000 Received: from p54A142DC.dip.t-dialin.net (EHLO chris-se.dyndns.org) [84.161.66.220] by mail.gmx.net (mp018) with SMTP; 07 Sep 2008 15:51:23 +0200 X-Authenticated: #186999 X-Provags-ID: V01U2FsdGVkX1/AW6keNsjAB4D0QXL1kqjDadCawg/ac97izw3Qzy MTz/PPowES86QD Received: from [192.168.100.13] (cobalt.seiler.lan [192.168.100.13]) by chris-se.dyndns.org (Postfix) with ESMTP id 59A591B3A9 for ; Sun, 7 Sep 2008 14:54:44 +0200 (CEST) Message-ID: <48C3DBE6.4000501@gmx.net> Date: Sun, 07 Sep 2008 15:49:26 +0200 User-Agent: Thunderbird 2.0.0.16 (X11/20080707) MIME-Version: 1.0 To: 'php-dev List' References: <48B07A62.3050207@gmx.net> <48B6E49E.3020409@gmx.net> <000001c90e82$e7b1b410$b7151c30$@com> <48C0461A.3070905@gmx.net> In-Reply-To: <48C0461A.3070905@gmx.net> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.54 Subject: Could somebody with ZE2 karma please commit this? (was: [RFC] [PATCH] Rounding in PHP) From: chris_se@gmx.net (Christian Seiler) Hi, > @internals: Anyway, since nobody of the core devs seems to be interested > in this topic, is there any objection to me committing this patch to HEAD? Since I received no answer, I assumed that nobody would object and tried to commit my patch to HEAD. Problem is that I don't have ZE2 karma and since my patch touches zend_strtod.[ch] too, my commit failed. I isolated the ZE2 parts of the patch so they can be applied separately so that somebody with ZE2 karma can commit it: http://www.christian-seiler.de/temp/php/2008-08-23-rounding/ze2.patch For an explanation for everyone that hasn't read my rounding RFC, the ZE2 part of the patch does the following: - Define some macros in zend_strtod.h that set the FPU control registers to always use double precision (and not double extended precision) when performing calculations. - Add necessary configure checks for Unix based systems to see if the required mechanism is present. - Define the correct constant in the Windows build system (MSVC always defines _controlfp_s) - Modify zend_strtod() that it uses these macros. The macros are defined in zend_strtod.h because I also need them in ext/standard/math.c. The reason for the need to fix zend_strtod() is that it currently behaves like strtod() on most systems but like (double)strtold() on x86 UNIX with GCC (see my RFC for details why that's not the same). For the record, the complete patch I tried to commit (I'll commit the rest myself): http://www.christian-seiler.de/temp/php/2008-08-23-rounding/rounding-head.patch I'd really appreciate it if someone could commit the ZE2 parts. Thanks! Regards, Christian