Commit fe1f331245b for php

commit fe1f331245ba00f1edf87630469e609104839f3f
Author: Ayke Halder <mail@ayke-halder.de>
Date:   Tue Nov 10 13:33:18 2026 +0000

    Fix test to use non-interned string (#25370)

    The str_repeat() optimization in 93fd714d returns the input string when
    called with a multiplier of 1. The innerHTML test therefore uses an
    interned string even though it intends to exercise a non-interned string
    with the UTF-8 validity flag set. random_int(1, 1) also returns 1 directly.

    Repeat the input twice to create a non-interned string, and update the
    expected output to match.

    Closes #25370

diff --git a/ext/dom/tests/modern/html/parser/Element_innerHTML.phpt b/ext/dom/tests/modern/html/parser/Element_innerHTML.phpt
index 89574b7a631..7e76cad0a12 100644
--- a/ext/dom/tests/modern/html/parser/Element_innerHTML.phpt
+++ b/ext/dom/tests/modern/html/parser/Element_innerHTML.phpt
@@ -20,7 +20,7 @@
 echo $dom->saveXML(), "\n";

 // Create a non-interned string that gets the UTF-8 validity flag added
-$str = str_repeat("my valid string", random_int(1, 1));
+$str = str_repeat("my valid string", random_int(2, 2));
 preg_match('/^.*$/u', $str);
 $el->innerHTML = $str;
 echo $dom->saveXML(), "\n";
@@ -56,7 +56,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <div xmlns="http://www.w3.org/1999/xhtml">invalid�utf-8𐍈𐍈𐍈</div>
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<div xmlns="http://www.w3.org/1999/xhtml">my valid string</div>
+<div xmlns="http://www.w3.org/1999/xhtml">my valid stringmy valid string</div>
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <style xmlns="http://www.w3.org/1999/xhtml">&lt;p&gt;foo&lt;/p&gt;</style>
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>