Re: convBase fromCharSet1 toCharSet2 WITHOUT BCMath
| From: | Aziz Saleh | Date: | Thu, 09 Apr 2015 18:07:04 +0000 |
| Subject: | Re: convBase fromCharSet1 toCharSet2 WITHOUT BCMath | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324794@lists.php.net to get a copy of this message | ||
On Thu, Apr 9, 2015 at 2:01 PM, Dee Ayy <dee.ayy@gmail.com> wrote:
> Thanks but your solution would still be to use BC Math. That is not my
> question.
>
> I don't want to get into a back and forth discussion defending my admin's
> or company's policies which I am merely subject to.
> My admin does not use the generic ./configure to --enable-bcmath
> http://php.net/manual/en/bc.installation.php
> It is done through the distro's package manager which has been damned to
> dependency hell.
>
> On Thu, Apr 9, 2015 at 11:18 AM, Aziz Saleh <azizsaleh@gmail.com> wrote:
>
>>
>>
>> On Wed, Apr 8, 2015 at 5:43 PM, Dee Ayy <dee.ayy@gmail.com> wrote:
>>
>>> PHPCoder has a cool convBase function at
>>>
>>> http://php.net/manual/en/function.base-convert.php#106546 but it
>>> uses BC
>>> Math.
>>>
>>> Would someone provide such a function which does not use BC Math?
>>> It needs to run on PHP Version 5.1.6, not 5.1.6*-3* (whatever that is).
>>>
>>> Thanks.
>>>
>>
>>
>> "Since PHP 4.0.4, libbcmath is bundled with PHP. You don't need any
>> external libraries for this extension." -
>> http://php.net/manual/en/bc.requirements.php
>>
>
>
Go through the docs for bc* functions you need, most of them have
alternatives in the comments section.