From:             [EMAIL PROTECTED]
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

Reply via email to