Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58690 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79009 invoked from network); 6 Mar 2012 21:47:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Mar 2012 21:47:52 -0000 Authentication-Results: pb1.pair.com header.from=tokul@users.sourceforge.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=tokul@users.sourceforge.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain users.sourceforge.net from 77.240.252.9 cause and error) X-PHP-List-Original-Sender: tokul@users.sourceforge.net X-Host-Fingerprint: 77.240.252.9 avilys.eik.lt Linux 2.6 Received: from [77.240.252.9] ([77.240.252.9:47315] helo=avilys.eik.lt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6E/7F-32184-606865F4 for ; Tue, 06 Mar 2012 16:47:51 -0500 Received: from avilys.eik.lt (avilys.local [127.0.0.1]) by avilys.eik.lt (Postfix) with ESMTP id D04C41F52F3 for ; Tue, 6 Mar 2012 23:47:46 +0200 (EET) Received: from 89.117.246.53 (NaSMail authenticated user tomas@topolis.lt) by avilys.eik.lt with HTTP; Tue, 6 Mar 2012 23:47:46 +0200 (EET) Message-ID: <59884.5975f635.1331070466.nsm@avilys.eik.lt> In-Reply-To: References: Date: Tue, 6 Mar 2012 23:47:46 +0200 (EET) To: internals@lists.php.net User-Agent: NaSMail/1.7.1 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] [RFC] Config setting to force all math operations to pass through BCMath library. From: tokul@users.sourceforge.net ("Tomas Kuliavas") 2012.03.06 23:03 Michael Morris rašė: > 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 has something similar with mbstring function overloading. If people use both string and mbstring functions, they can no longer trust string functions. mbstring function overloading makes string functions unreliable. Functions, that are not charset aware by default, can start operating in different charset with a single flip in interpreter config. First you start cursing, then you have to implement workarounds to deal with features designed for people, who want to use different functions without changing a single line in their code. You are asking to do same thing in math functions. If you want to use bcmath, use bcmath in your code. -- Tomas