mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Add test for mb_str_split on UCS-2 text
This commit is contained in:
parent
f303fc8a9b
commit
671dcee01e
1 changed files with 11 additions and 0 deletions
11
ext/mbstring/tests/mb_str_split_other.phpt
Normal file
11
ext/mbstring/tests/mb_str_split_other.phpt
Normal file
|
@ -0,0 +1,11 @@
|
|||
--TEST--
|
||||
mb_str_split() tests for more text encodings
|
||||
--EXTENSIONS--
|
||||
mbstring
|
||||
--FILE--
|
||||
<?php
|
||||
$array = mb_str_split("\x00\x01\x02\x03\x04\x05\x06\x07", 2, "UCS-2BE");
|
||||
echo "[", bin2hex($array[0]), ", ", bin2hex($array[1]), "]\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
[00010203, 04050607]
|
Loading…
Add table
Add a link
Reference in a new issue