summaryrefslogtreecommitdiff
path: root/ext/domxml/php_domxml.c
diff options
context:
space:
mode:
authorUwe Steinmann <steinm@php.net>2002-04-30 05:18:12 +0000
committerUwe Steinmann <steinm@php.net>2002-04-30 05:18:12 +0000
commit3858221c2ff90cecd96b7e379b2157bbf1b9ede4 (patch)
tree9426076942b4becb5bb652545cae267d1c66f4e9 /ext/domxml/php_domxml.c
parenteeb4fd9b450444d3880f22ef1d7b0c5090161bd3 (diff)
downloadphp-git-3858221c2ff90cecd96b7e379b2157bbf1b9ede4.tar.gz
- added function domxml_parser_set_keep_blanks()
Diffstat (limited to 'ext/domxml/php_domxml.c')
-rw-r--r--ext/domxml/php_domxml.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c
index bb21c59a02..87c9046a49 100644
--- a/ext/domxml/php_domxml.c
+++ b/ext/domxml/php_domxml.c
@@ -299,6 +299,7 @@ static function_entry php_domxmldoc_class_functions[] = {
static function_entry php_domxmlparser_class_functions[] = {
PHP_FALIAS(add_chunk, domxml_parser_add_chunk, NULL)
PHP_FALIAS(end, domxml_parser_end, NULL)
+ PHP_FALIAS(set_keep_blanks, domxml_parser_set_keep_blanks, NULL)
{NULL, NULL, NULL}
};
@@ -3655,6 +3656,21 @@ PHP_FUNCTION(domxml_parser_end)
}
/* }}} */
+/* {{{ proto bool domxml_parser_set_keep_blanks(bool mode)
+ Determines how to handle blanks */
+PHP_FUNCTION(domxml_parser_set_keep_blanks)
+{
+ zval *id;
+ xmlParserCtxtPtr parserp;
+ zend_bool mode;
+
+ DOMXML_PARAM_ONE(parserp, id, le_domxmlparserp, "b", &mode);
+ parserp->keepBlanks = mode;
+
+ RETURN_TRUE;
+}
+/* }}} */
+
#ifdef newcode
/* {{{ proto int node_namespace([int node])
Returns list of namespaces */