diff options
Diffstat (limited to 'ext/domxml/php_domxml.c')
-rw-r--r-- | ext/domxml/php_domxml.c | 16 |
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 */ |