]> granicus.if.org Git - php/commitdiff
Merge branch 'PHP-7.4'
authorChristoph M. Becker <cmbecker69@gmx.de>
Thu, 12 Mar 2020 09:57:14 +0000 (10:57 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Thu, 12 Mar 2020 09:57:14 +0000 (10:57 +0100)
* PHP-7.4:
  Fix #61597: SXE properties may lack attributes and content

1  2 
ext/simplexml/simplexml.c
ext/simplexml/tests/000.phpt
ext/simplexml/tests/009b.phpt
ext/simplexml/tests/bug51615.phpt

Simple merge
Simple merge
index bc651fe74479811dfd55baa1d75acc6349a16900,a8ca72c5eaa725686d9ed42a635771ef1878ad00..6909a034465295c43fe42d35d0872cf82087cf90
@@@ -26,7 -28,29 +26,28 @@@ object(SimpleXMLElement)#%d (3) 
      string(5) "elem1"
    }
    ["elem1"]=>
-   string(10) "Bla bla 1."
+   object(SimpleXMLElement)#%d (3) {
+     ["@attributes"]=>
+     array(1) {
+       ["attr1"]=>
+       string(5) "first"
+     }
+     ["comment"]=>
+     object(SimpleXMLElement)#%d (0) {
+     }
+     ["elem2"]=>
+     string(35) "
+    Here we have some text data.
+   "
+   }
    ["elem11"]=>
-   string(10) "Bla bla 2."
+   object(SimpleXMLElement)#%d (2) {
+     ["@attributes"]=>
+     array(1) {
+       ["attr2"]=>
+       string(6) "second"
+     }
+     [0]=>
+     string(10) "Bla bla 2."
+   }
  }
 -===DONE===
Simple merge