Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58684 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69204 invoked from network); 6 Mar 2012 21:18:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Mar 2012 21:18:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qy0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:33361] helo=mail-qy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BB/5D-32184-63F765F4 for ; Tue, 06 Mar 2012 16:18:46 -0500 Received: by qcmt36 with SMTP id t36so3226537qcm.29 for ; Tue, 06 Mar 2012 13:18:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=3ax+YP+ehBS8ZSclO+uuicZllrkXNAtt2EQxX+qEmQU=; b=AIph+EIBq23VFydPw8Tdu02ai0YUXmqb1TziwAMNVHaXh/5N5U+WcgSmx60K6AGL8g cqfaxWsQJQwssQMlscBghaZRgK+0OSaRFtVcMvKT2UZAbjiJlXM/9F5cZ3C++SzkxgSL uK8l8hS+U4MepetiJGsWlREUY2KSu6WdFyHCHZwJWS6ljcwkhV5kthYhDW+X/rQ/u4LN oIMC98TJnzqd26Io1cbnGLFIjXYHndu+LyM9UFnCd5ckn+Xgs494TcfajKgQKjMnPKsi WFOW+to3kt/ywn335O7oXbkco8S40W8IMLcA9dvLFARTygN7lbM02EjETY0EGziqCQo5 jzFQ== MIME-Version: 1.0 Received: by 10.224.207.70 with SMTP id fx6mr26355qab.79.1331068722608; Tue, 06 Mar 2012 13:18:42 -0800 (PST) Received: by 10.229.49.74 with HTTP; Tue, 6 Mar 2012 13:18:42 -0800 (PST) In-Reply-To: References: Date: Tue, 6 Mar 2012 16:18:42 -0500 Message-ID: To: Michael Morris Cc: PHP Internals List Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [RFC] Config setting to force all math operations to pass through BCMath library. From: ircmaxell@gmail.com (Anthony Ferrara) I initially like the concept (arbitrary precision operations). But please don't add another ini setting. Especially one where *logic* can change depending on the setting. I don't want a case where pow(2, 65)-1 will return different answers depending on the ini. That's just asking for problems. Instead, perhaps a pythonic approach may be useful (storing as int/float for small values, but auto-converting to arbitrary precision if the int/float can't exactly represent what was requested/computed)... Just a thought to make it useful without the ini complexity or performance hits. Although this will present a significant BC break (internally, zend engine wise), so it would probably be limited to a major release anyway... Just a thought... Anthony On Tue, Mar 6, 2012 at 4:03 PM, Michael Morris wrote: > https://wiki.php.net/rfc/php_ini_bcmath_default > > This is the only other RFC I've been rummaging around in my head but > hadn't brought up. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >