summaryrefslogtreecommitdiff
path: root/ext/mbstring/tests/bug46806.phpt
blob: ea00035c0f92c321225cd8cee87b6787b9ce6bba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Bug #46806 (mb_wtrimwidth cutting to early)
--CREDITS--
Sebastian Schürmann
sebs@php.net
Testfest 2009
--SKIPIF--
<?php if (!extension_loaded("mbstring")) die("skip mbstring is not available"); ?>
--FILE--
<?php
echo mb_strimwidth('helloworld', 0, 5, '...', 'UTF-8') . "\n";
echo mb_strimwidth('hello', 0, 5, '...', 'UTF-8');
?>
--EXPECT--
he...
hello