From: struchkov at gmail dot com Operating system: RedHat FC4 PHP version: 5.0.5 PHP Bug Type: mbstring related Bug description: wrong output from mb_split
Description: ------------ I work with multibite string such as russian articles in utf-encoding. I use mb_split in my program to split string ro words function splitString($string) { $tmp=mb_split('[[:space:][:punct:]><]',$string); foreach($tmp as $k=>$v) if (empty($v)) unset($tmp[$k]); return $tmp; } In my small test server (1 cpu AMD Sempron(tm) 2800+, php-4.3.10, Suse 9.3, kernel 2.6.11.4-21.9-default) I'm having right results. But in my producting server (2 cpu Intel(R) Xeon(TM) CPU 3.00GHz with HT, php-5.0.4, RedHat FC4, kernel 2.6.13-1.1526_FC4smp) I'm having strange split, some symbols are converted into '?', some words split in middle of word.... May be problem in 64-bit version of processor -- Edit bug report at http://bugs.php.net/?id=34753&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34753&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34753&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34753&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34753&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34753&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34753&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34753&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34753&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34753&r=support Expected behavior: http://bugs.php.net/fix.php?id=34753&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34753&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34753&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34753&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34753&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34753&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34753&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34753&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34753&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34753&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34753&r=mysqlcfg