From: Johannes Schlüter Date: Wed, 11 Jul 2007 15:46:20 +0000 (+0000) Subject: Fix test for unicode mode X-Git-Tag: BEFORE_IMPORT_OF_MYSQLND~216 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c8534287794fbd87b0cdd5e808e594abd5f5409d;p=php Fix test for unicode mode --- diff --git a/ext/standard/tests/strings/count_chars.phpt b/ext/standard/tests/strings/count_chars.phpt index fe21b656f0..08295c15aa 100644 --- a/ext/standard/tests/strings/count_chars.phpt +++ b/ext/standard/tests/strings/count_chars.phpt @@ -4,15 +4,80 @@ count_chars() function --EXPECT-- 000000000000000000000000000000001200000000000010000000000000000000000000000000000000000000000000003000120111121083202362220000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -121312111121832236222 +Array +( + [32] => 12 + [45] => 1 + [97] => 3 + [101] => 12 + [103] => 1 + [104] => 1 + [105] => 1 + [106] => 1 + [107] => 2 + [108] => 1 + [110] => 8 + [111] => 3 + [112] => 2 + [114] => 2 + [115] => 3 + [116] => 6 + [117] => 2 + [118] => 2 + [119] => 2 +) 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -aeghijklnoprstuvw -1 +bool(true) +--UEXPECTF-- +Warning: count_chars(): Only mode=1 is supported with Unicode strings in %s on line %d + +Warning: implode(): Argument to implode must be an array in %s on line %d + +Array +( + [h] => 1 + [e] => 12 + [t] => 6 + [ ] => 12 + [l] => 1 + [v] => 2 + [n] => 8 + [i] => 1 + [s] => 3 + [r] => 2 + [w] => 2 + [o] => 3 + [p] => 2 + [-] => 1 + [j] => 1 + [k] => 2 + [u] => 2 + [g] => 1 + [a] => 3 +) + +Warning: count_chars(): Only mode=1 is supported with Unicode strings in %s on line %d + +Warning: implode(): Argument to implode must be an array in %s on line %d + + +Warning: count_chars(): Only mode=1 is supported with Unicode strings in %s on line %d + + +Warning: count_chars(): Only mode=1 is supported with Unicode strings in %s on line %d +bool(false)