xref: /PHP-8.2/ext/mbstring/tests/bug46806.phpt (revision 74859783)
1--TEST--
2Bug #46806 (mb_strimwidth cutting too early)
3--CREDITS--
4Sebastian Schürmann
5sebs@php.net
6Testfest 2009
7--EXTENSIONS--
8mbstring
9--FILE--
10<?php
11echo mb_strimwidth('helloworld', 0, 5, '...', 'UTF-8') . "\n";
12echo mb_strimwidth('hello', 0, 5, '...', 'UTF-8');
13?>
14--EXPECT--
15he...
16hello
17