Re: [RFC] Config setting to force all math operations to pass through BCMath library.

From: Date: Tue, 06 Mar 2012 21:47:46 +0000
Subject: Re: [RFC] Config setting to force all math operations to pass through BCMath library.
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-58690@lists.php.net to get a copy of this message
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

« previous php.internals (#58690) next »