dis-bench / src /php /php-src /ext /intl /tests /bug55562.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
306 Bytes
--TEST--
grapheme_substr() - Bug55562 - grapheme_substr() returns false if length parameter is to large
--EXTENSIONS--
intl
--FILE--
<?php
var_dump(
grapheme_substr('FOK', 1, 20), // expected: OK
grapheme_substr('한국어', 1, 20) //expected: 국어
);
?>
--EXPECT--
string(2) "OK"
string(6) "국어"