From c0f12111bab08b1f452f9f59666c4961ac6eb724 Mon Sep 17 00:00:00 2001 From: Christian Stocker Date: Mon, 12 Aug 2002 13:11:50 +0000 Subject: @ - Added $DomDocument->xinclude() for substitution of XIncludes in a DomDocument (chregu) --- ext/domxml/php_domxml.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'ext/domxml/php_domxml.c') diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index 63893328de..3e6e4a0085 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -284,6 +284,7 @@ static zend_function_entry domxml_functions[] = { PHP_FALIAS(new_xmldoc, domxml_new_xmldoc, NULL) PHP_FALIAS(domxml_dumpmem, domxml_dump_mem, NULL) PHP_FE(domxml_doc_validate, second_args_force_ref) + PHP_FE(domxml_doc_xinclude, NULL) {NULL, NULL, NULL} }; @@ -325,6 +326,7 @@ static function_entry php_domxmldoc_class_functions[] = { PHP_FALIAS(xptr_new_context, xptr_new_context, NULL) #endif PHP_FALIAS(validate, domxml_doc_validate, first_args_force_ref) + PHP_FALIAS(xinclude, domxml_doc_xinclude, NULL) {NULL, NULL, NULL} }; @@ -4785,6 +4787,27 @@ PHP_FUNCTION(domxml_version) } /* }}} */ +/* {{{ proto int domxml_doc_xinclude() + Substitutues xincludes in a DomDocument */ +PHP_FUNCTION(domxml_doc_xinclude) +{ + zval *id; + xmlDoc *docp; + int err; + + DOMXML_PARAM_NONE(docp, id, le_domxmldocp); + + err = xmlXIncludeProcess (docp); + + if (err) { + RETVAL_LONG(err); + } else { + RETVAL_FALSE; + } + +} +/* }}} */ + #if HAVE_DOMXSLT static zval *php_xsltstylesheet_new(xsltStylesheetPtr obj, int *found TSRMLS_DC) { -- cgit v1.2.1