diff options
author | Christian Stocker <chregu@php.net> | 2002-08-12 13:11:50 +0000 |
---|---|---|
committer | Christian Stocker <chregu@php.net> | 2002-08-12 13:11:50 +0000 |
commit | c0f12111bab08b1f452f9f59666c4961ac6eb724 (patch) | |
tree | 8e79ae98bc3399347657ba538a3ef21481c9ebc6 /ext/domxml/php_domxml.c | |
parent | 9d03c0bdf018b0c174fc5a925ebded26287c04d7 (diff) | |
download | php-git-c0f12111bab08b1f452f9f59666c4961ac6eb724.tar.gz |
@ - Added $DomDocument->xinclude() for substitution of XIncludes in
a DomDocument (chregu)
Diffstat (limited to 'ext/domxml/php_domxml.c')
-rw-r--r-- | ext/domxml/php_domxml.c | 23 |
1 files changed, 23 insertions, 0 deletions
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) { |