php: raw bytestrings vs. mb_string.func_overload and strlen

Jonathan Daugherty cygnus at janrain.com
Tue Jan 15 11:26:59 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.

HTH,

-- 
  Jonathan Daugherty



More information about the Dev mailing list