diff options
Diffstat (limited to 'ext/intl/tests/bug55562.phpt')
-rw-r--r-- | ext/intl/tests/bug55562.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/intl/tests/bug55562.phpt b/ext/intl/tests/bug55562.phpt new file mode 100644 index 000000000..dd053c0ee --- /dev/null +++ b/ext/intl/tests/bug55562.phpt @@ -0,0 +1,13 @@ +--TEST-- +grapheme_substr() - Bug55562 - grapheme_substr() returns false if length parameter is to large +--SKIPIF-- +<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?> +--FILE-- +<?php +var_dump( + grapheme_substr('FOK', 1, 20), // expected: OK + grapheme_substr('한국어', 1, 20) //expected: 국어 +); +--EXPECT-- +string(2) "OK" +string(6) "국어" |