Re: mb_string overloading and binary data...

From: Date: Wed, 19 Feb 2003 23:10:39 +0000
Subject: Re: mb_string overloading and binary data...
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-94372@lists.php.net to get a copy of this message
Zitat von David Brown <dave@codewhore.org>: > This is kind of a user-space question, but I'm hoping that it concerns > enough of the PHP infrastructure (conceptually) that this is the right > place to post it. This should rather be asked on the i18n mailing list if not on php-general. But as you already asked: > I've got an application that processes both textual and binary data. The > domain of the application isn't really relevant, but it makes liberal > use of string and pcre function. > > Ignoring the fact (?) that php_pcre doesn't seem to be mb-aware... > Say I were to turn on the mb_string overload support, effectively > replacing strlen, etc. with equivalent multibyte functions. Is there any > way then to still get the exact size, in bytes, of a 'string' of binary > data? If you write the application, why do you want to depend on a certain php.ini setting? I won't use overloading at all but call the mbstring functions directly where appropriate and the "original" string function else. Please respond to one of the above mentioned lists. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft

« previous php.dev (#94372) next »