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

Bug #54601 Removing the doctype node segfaults
Submitted: 2011-04-25 13:06:08 Modified: 2011-08-30 13:48:14
From: hannes.magnusson Assigned: rrichards
Status: Closed Package: Reproducible crash
PHP Version: 5.3SVN-2011-04-25 (SVN) OS: Linux

There is 1 diff reported by users for this test.

Count Diff
4 (100%)
001+ Notice: Undefined property: DOMDocument::$doctype in %s/bug54601.php on line 13
002+
003+ Fatal error: Uncaught TypeError: Argument 1 passed to DOMNode::removeChild() must be an instance of DOMNode, null given in %s/bug54601.php:14
004+ Stack trace:
001- DOMDocumentType
002- <?xml version="1.0" encoding="utf-8"?>
003- <set><foo>footext</foo><bar>bartext</bar></set>
004- ===DONE===
005+ #0 %s/bug54601.php(14): DOMNode->removeChild(NULL)
006+ #1 {main}
007+ thrown in %s/bug54601.php on line 14