mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
17 lines
293 B
PHP
17 lines
293 B
PHP
--TEST--
|
|
Bug #46806 (mb_strimwidth cutting too early)
|
|
--CREDITS--
|
|
Sebastian Schürmann
|
|
sebs@php.net
|
|
Testfest 2009
|
|
--EXTENSIONS--
|
|
mbstring
|
|
--FILE--
|
|
<?php
|
|
echo mb_strimwidth('helloworld', 0, 5, '...', 'UTF-8') . "\n";
|
|
echo mb_strimwidth('hello', 0, 5, '...', 'UTF-8');
|
|
?>
|
|
--EXPECT--
|
|
he...
|
|
hello
|