- DOM:
. Fixed bug #77569: (Write Access Violation in DomImplementation). (Nikita,
cmb)
+ . Fixed bug #79271 (DOMDocumentType::$childNodes is NULL). (cmb)
- PCRE:
. Fixed bug #79188 (Memory corruption in preg_replace/preg_replace_callback
return FAILURE;
}
- if (dom_node_children_valid(nodep) == FAILURE) {
- ZVAL_NULL(retval);
- } else {
- php_dom_create_interator(retval, DOM_NODELIST);
- intern = Z_DOMOBJ_P(retval);
- dom_namednode_iter(obj, XML_ELEMENT_NODE, intern, NULL, NULL, NULL);
- }
+ php_dom_create_interator(retval, DOM_NODELIST);
+ intern = Z_DOMOBJ_P(retval);
+ dom_namednode_iter(obj, XML_ELEMENT_NODE, intern, NULL, NULL, NULL);
return SUCCESS;
}
--- /dev/null
+--TEST--
+Bug #79271 (DOMDocumentType::$childNodes is NULL)
+--SKIPIF--
+<?php
+if (!extension_loaded('dom')) die('skip dom extension not available');
+?>
+--FILE--
+<?php
+$dom = new DOMImplementation();
+$type = $dom->createDocumentType('html');
+var_dump($type->childNodes);
+?>
+--EXPECTF--
+object(DOMNodeList)#%d (1) {
+ ["length"]=>
+ int(0)
+}