php: raw bytestrings vs. mb_string.func_overload and strlen

Artemy Tregoubenko atregoubenko at gmail.com
Tue Jan 15 11:32:37 PST 2008


>> I use mb_string.func_overload in my utf-8 project. When I tried to
>> plug in openid consumer, I used gmp for bigmath, however I got timeout
>> errors in bigmath. Some research showed me that root of evil is
>> strlen() call in BigMath.php. It is used there to calculate length of
>> raw random bytestring.
>
> Are you using a 1.x.x version of the library?  The 2.0.0 release does
> not use strlen() for this.

Oh, that's great! Is it considered mature enough for production usage?



More information about the Dev mailing list