Skip to content

Commit e468c25

Browse files
committed
Fix test to use non-interned string
1 parent 5b58911 commit e468c25

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎ext/dom/tests/modern/html/parser/Element_innerHTML.phpt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ $el->innerHTML = "invalid\xffutf-8𐍈𐍈𐍈";
2020
echo $dom->saveXML(), "\n";
2121

2222
// Create a non-interned string that gets the UTF-8 validity flag added
23-
$str = str_repeat("my valid string", random_int(1, 1));
23+
$strInterned = "my valid";
24+
$str = $strInterned . " string";
2425
preg_match('/^.*$/u', $str);
2526
$el->innerHTML = $str;
2627
echo $dom->saveXML(), "\n";

0 commit comments

Comments
 (0)