mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
21 lines
488 B
PHP
21 lines
488 B
PHP
--TEST--
|
|
Bug #79787 mb_strimwidth does not trim string
|
|
--EXTENSIONS--
|
|
mbstring
|
|
--FILE--
|
|
<?php
|
|
echo mb_strimwidth("一二三", 0, 4, '.', 'UTF-8')."\n";
|
|
echo mb_strimwidth("一二三", 0, 5, '.', 'UTF-8')."\n";
|
|
echo mb_strimwidth("一二三", 0, 6, '.', 'UTF-8')."\n";
|
|
echo mb_strimwidth("abcdef", 0, 4, '.', 'UTF-8')."\n";
|
|
echo mb_strimwidth("abcdef", 0, 5, '.', 'UTF-8')."\n";
|
|
echo mb_strimwidth("abcdef", 0, 6, '.', 'UTF-8')."\n";
|
|
?>
|
|
--EXPECT--
|
|
一.
|
|
一二.
|
|
一二三
|
|
abc.
|
|
abcd.
|
|
abcdef
|