mirror of
https://github.com/php/php-src.git
synced 2024-12-04 07:14:10 +08:00
14 lines
351 B
PHP
14 lines
351 B
PHP
--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) "국어"
|