I'm going to argue about it (fiercely :) if/when it becomes more relevant, but not a microsecond sooner...
Zeev At 11:38 03/09/2002, [EMAIL PROTECTED] wrote: >On Tue, 3 Sep 2002, Zeev Suraski wrote: > > > At 11:20 03/09/2002, [EMAIL PROTECTED] wrote: > > >strlen -> stringlength... I think this should count the number of > > >characters in a string, not the binary length. It would be nice if this > > >function (strlen) would be transparent with mb things too, as no code > > >needs to be changed then. > > > > Compatibility is king. strlen() returns the number of bytes, has been for > > at least 5 years. You just can't change that because the name is slightly > > better or slightly worse. > >Simply stating "Compability is king." doesn't do it for. And just saying >that it "has been like that for at least 5 years" doesn't mean it can >not change. It won't break BC at all (not even for the mbstring users, >as the mb_strlen() overloads the 'normal' strlen(). Heck, it will even >break BC for those users! Also, from the docs (and that is all what >should matter to users): > > strlen > > (PHP 3, PHP 4 ) > strlen -- Get string length > >Where can I find that it returns the number of bytes? -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php