mirror of
https://github.com/php/php-src.git
synced 2026-04-27 18:23:26 +02:00
- added function domxml_parser_set_keep_blanks()
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -167,6 +167,7 @@ PHP_FUNCTION(domxml_pi_data);
|
||||
PHP_FUNCTION(domxml_parser);
|
||||
PHP_FUNCTION(domxml_parser_add_chunk);
|
||||
PHP_FUNCTION(domxml_parser_end);
|
||||
PHP_FUNCTION(domxml_parser_set_keep_blanks);
|
||||
|
||||
/* Class XPathContext methods */
|
||||
#if defined(LIBXML_XPATH_ENABLED)
|
||||
|
||||
Reference in New Issue
Block a user