xref: /PHP-5.4/ext/intl/tests/bug55562.phpt (revision 40217d04)
1--TEST--
2grapheme_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
7var_dump(
8  grapheme_substr('FOK', 1, 20), // expected: OK
9  grapheme_substr('한국어', 1, 20) //expected: 국어
10);
11--EXPECT--
12string(2) "OK"
13string(6) "국어"
14