Last active
April 26, 2024 00:04
-
-
Save aoirint/5c6b2459dbe0718dddac6e472e3278ef to your computer and use it in GitHub Desktop.
Reproduction of https://bugzilla.mozilla.org/show_bug.cgi?id=1622583
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$title = ""; | |
$N = 100*3; # multiplying "3" because "あ" is 3 bytes in utf-8 | |
# $N = 74; | |
for ($i=0; $i<$N; $i++) { | |
$title = $title . "a"; | |
} | |
?> | |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title><?= $title ?></title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$title = ""; | |
$N = 75; # error | |
# $N = 74; # no error | |
for ($i=0; $i<$N; $i++) { | |
$title = $title . "あ"; | |
} | |
?> | |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title><?= $title ?></title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title>あああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああ</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title>ああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああ</title> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment