#19690 [NEW]: mb_split is broken

From: Date: Tue, 01 Oct 2002 13:44:54 +0000
Subject: #19690 [NEW]: mb_split is broken
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-20924@lists.php.net to get a copy of this message
From: jc@mega-bucks.co.jp Operating system: Red Hat Linux 7.2 PHP version: 4.2.3 PHP Bug Type: mbstring related Bug description: mb_split is broken The following output and code show that mb_split does not work: OUTPUT: REGEX encoding is EUC-JP encoding is ASCII v is One two COUNT: 9 a word: ** a word: ** a word: ** a word: ** a word: ** a word: ** a word: ** a word: ** a word: ** CODE: $aWords = array(); echo " REGEX encoding is ". mb_regex_encoding()."<BR>"; $v ="One two"; echo "encoding is ".mb_detect_encoding($v)."<BR>"; echo "v is $v <BR>"; $aWords = mb_split(" ",$v); echo "COUNT: ".count($aWords)."<BR>"; foreach($aWords as $w) { echo "a word: *$w*<BR>"; } exit; -- Edit bug report at http://bugs.php.net/?id=19690&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19690&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19690&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19690&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19690&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19690&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19690&r=support Expected behavior: http://bugs.php.net/fix.php?id=19690&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19690&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19690&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19690&r=globals

« previous php.bugs (#20924) next »