xref: /PHP-8.2/ext/intl/tests/bug55562.phpt (revision 74859783)
1--TEST--
2grapheme_substr() - Bug55562 - grapheme_substr() returns false if length parameter is to large
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7var_dump(
8  grapheme_substr('FOK', 1, 20), // expected: OK
9  grapheme_substr('한국어', 1, 20) //expected: 국어
10);
11?>
12--EXPECT--
13string(2) "OK"
14string(6) "국어"
15