summaryrefslogtreecommitdiff
path: root/ext/dom/php_dom.c
diff options
context:
space:
mode:
authorChristian Stocker <chregu@php.net>2004-08-13 12:32:55 +0000
committerChristian Stocker <chregu@php.net>2004-08-13 12:32:55 +0000
commite99c3756068e0428fc052ff4b77b741d2df5afd2 (patch)
tree12e14855e2fc0cd00d66318c3f08e7c89b50dafa /ext/dom/php_dom.c
parent566230a01b4219010e5aabe00aa6532ad07834cf (diff)
downloadphp-git-e99c3756068e0428fc052ff4b77b741d2df5afd2.tar.gz
Added DomDocument->recover property for parsing not well-formed XML Documents.
Diffstat (limited to 'ext/dom/php_dom.c')
-rw-r--r--ext/dom/php_dom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c
index ac7a5ae1fc..c65caaf618 100644
--- a/ext/dom/php_dom.c
+++ b/ext/dom/php_dom.c
@@ -126,6 +126,7 @@ dom_doc_propsptr dom_get_doc_props(php_libxml_ref_obj *document)
doc_props->preservewhitespace = 1;
doc_props->substituteentities = 0;
doc_props->stricterror = 1;
+ doc_props->recover = 0;
if (document) {
document->doc_props = doc_props;
}
@@ -462,6 +463,7 @@ PHP_MINIT_FUNCTION(dom)
dom_register_prop_handler(&dom_document_prop_handlers, "validateOnParse", dom_document_validate_on_parse_read, dom_document_validate_on_parse_write TSRMLS_CC);
dom_register_prop_handler(&dom_document_prop_handlers, "resolveExternals", dom_document_resolve_externals_read, dom_document_resolve_externals_write TSRMLS_CC);
dom_register_prop_handler(&dom_document_prop_handlers, "preserveWhiteSpace", dom_document_preserve_whitespace_read, dom_document_preserve_whitespace_write TSRMLS_CC);
+ dom_register_prop_handler(&dom_document_prop_handlers, "recover", dom_document_recover_read, dom_document_recover_write TSRMLS_CC);
dom_register_prop_handler(&dom_document_prop_handlers, "substituteEntities", dom_document_substitue_entities_read, dom_document_substitue_entities_write TSRMLS_CC);
zend_hash_merge(&dom_document_prop_handlers, &dom_node_prop_handlers, NULL, NULL, sizeof(dom_prop_handler), 0);