Test: /ext/dom/tests/dom003.phpt - Version 7.1.1-dev    

There is 1 diff reported by users for this test.

Count Diff
4 (100%)
001+ Notice: Undefined property: DOMDocument::$documentElement in %s/dom003.php on line 5
002- object(DOMException)#%d (%d) {
003- ["message":protected]=>
004- string(23) "Hierarchy Request Error"
005- ["string":"Exception":private]=>
006- string(0) ""
003+
004+ Fatal error: Uncaught Error: Call to a member function appendChild() on null in %s/dom003.php:8
005+ Stack trace:
006+ #0 {main}
007+ thrown in %s/dom003.php on line 8
007- ["file":protected]=>
008- string(%d) "%sdom003.php"
009- ["line":protected]=>
010- int(8)
011- ["trace":"Exception":private]=>
012- array(1) {
013- [0]=>
014- array(6) {
015- ["file"]=>
016- string(%d) "%sdom003.php"
017- ["line"]=>
018- int(8)
019- ["function"]=>
020- string(11) "appendChild"
021- ["class"]=>
022- string(7) "DOMNode"
023- ["type"]=>
024- string(2) "->"
025- ["args"]=>
026- array(1) {
027- [0]=>
028- DOMElement
029- }
030- }
031- }
032- ["previous":"Exception":private]=>
033- NULL
034- ["code"]=>
035- int(3)
036- }
037- --- Don't catch exception with try/catch
038-
039- Fatal error: Uncaught DOMException: Hierarchy Request Error in %sdom003.php:%d
040- Stack trace:
041- #0 %sdom003.php(%d): DOMNode->appendChild(Object(DOMElement))
042- #1 {main}
043- thrown in %sdom003.php on line %d