From: Jon P. <jo...@re...> - 2007-04-14 01:24:42
|
On Fri, 2007-04-13 at 18:20 -0700, Victor Stone wrote: > On 4/13/07, Jon Phillips <jo...@re...> wrote: > > On Tue, 2007-03-27 at 20:51 +0800, Snic Huang wrote: > > > > Currently, the recommended approach I see on the web is to create a > > wrapper function for the various string functions and check if the > > mbstring functions are compiled into php on install and then use those, > > and if not, use the default string functions. > > > > sorry for being so provincial about this but are we *sure* the > preg/tags issue is the *last* issue? or is that just the first of many > (phptal? mysql? getid3? snoopy? etc.) that are coming down the pike? Its generically for all string functions that could possibly be a problem because they operate on ascii characters rather than our good multibyte variety. > If it's really the last one then cclib/ccutil.php is where it belongs > and I strongly lobby for an admin choice > > globals $CC_GLOBALS; > > if( !empty($CC_GLOBALS['admin-says-try-mb']) && function_exists(mb_blah) ) > do mb_preg > else > preg_ > > VS Ok, that sounds fine to me...I just don't want to get a bunhc of custom if/thens all over the place to fix this for complex languages, right? Snic, would you take a stab at implementing this so we have an admin option, plus generic code as VS says? That would be a major help. I'm doing 99% bizdev now, believe that? Man..... Jon -- Jon Phillips San Francisco, CA USA PH 510.499.0894 jo...@re... http://www.rejon.org MSN, AIM, Yahoo Chat: kidproto Jabber Chat: re...@gr... IRC: re...@ir... |