bug55562.phpt 351 B

12345678910111213
  1. --TEST--
  2. grapheme_substr() - Bug55562 - grapheme_substr() returns false if length parameter is to large
  3. --SKIPIF--
  4. <?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
  5. --FILE--
  6. <?php
  7. var_dump(
  8. grapheme_substr('FOK', 1, 20), // expected: OK
  9. grapheme_substr('한국어', 1, 20) //expected: 국어
  10. );
  11. --EXPECT--
  12. string(2) "OK"
  13. string(6) "국어"