bug46806.phpt 363 B

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