Skip to content

Commit 216e104

Browse files
committed
Add test case for longer strings
1 parent c55d7b2 commit 216e104

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ext/mbstring/tests/mb_ucfirst_lcfirst.phpt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ var_dump(bin2hex(mb_ucfirst(mb_convert_encoding("ebi", "SJIS", "UTF-8"), "
5959
var_dump(bin2hex(mb_lcfirst(mb_convert_encoding("EBI", "SJIS", "UTF-8"), "SJIS")));
6060
var_dump(bin2hex(mb_ucfirst(hex2bin("8471"), "SJIS"))); /* б */
6161
var_dump(bin2hex(mb_lcfirst(hex2bin("8441"), "SJIS"))); /* Б */
62+
echo "== Longer strings ==\n";
63+
var_dump(mb_ucfirst("э" . str_repeat("A", 65536)) === "Э" . str_repeat("A", 65536));
64+
var_dump(mb_lcfirst("Э" . str_repeat("A", 65536)) === "э" . str_repeat("A", 65536));
6265
?>
6366
--EXPECT--
6467
== Empty String ==
@@ -82,3 +85,6 @@ string(12) "826482828289"
8285
string(12) "828582618268"
8386
string(4) "8441"
8487
string(4) "8471"
88+
== Longer strings ==
89+
bool(true)
90+
bool(true)

0 commit comments

Comments
 (0)