Test: /ext/dom/tests/dom_set_attr_node.phpt - Version 7.2.0-dev    

There are 3 different diffs reported by users for this test.

Count Diff
10 (71%)
001+ Notice: Undefined property: DOMDocument::$documentElement in %s/dom_set_attr_node.php on line 15
002+
003+ Fatal error: Uncaught Error: Call to a member function getAttributeNode() on null in %s/dom_set_attr_node.php:16
004+ Stack trace:
005+ #0 {main}
006+ thrown in %s/dom_set_attr_node.php on line 16
001- object(DOMException)#%d (7) {
002- ["message":protected]=>
003- string(20) "Wrong Document Error"
004- ["string":"Exception":private]=>
005- string(0) ""
006- ["file":protected]=>
007- string(%d) "%sdom_set_attr_node.php"
008- ["line":protected]=>
009- int(%d)
010- ["trace":"Exception":private]=>
011- array(1) {
012- [0]=>
013- array(6) {
014- ["file"]=>
015- string(%d) "%sdom_set_attr_node.php"
016- ["line"]=>
017- int(%d)
018- ["function"]=>
019- string(16) "setAttributeNode"
020- ["class"]=>
021- string(10) "DOMElement"
022- ["type"]=>
023- string(2) "->"
024- ["args"]=>
025- array(1) {
026- [0]=>
027- DOMAttr
028- }
029- }
030- }
031- ["previous":"Exception":private]=>
032- NULL
033- ["code"]=>
034- int(4)
035- }
2 (14%)
027+ DOMAttr
027-
028- Warning: var_dump(): %s
029- DOMAttr
2 (14%)
013+ array(7) {
013- array(6) {
029+ ["strict_types"]=>
030+ int(0)