summaryrefslogtreecommitdiff
path: root/ext/domxml/php_domxml.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/domxml/php_domxml.c')
-rw-r--r--ext/domxml/php_domxml.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c
index e0b849742b..50e0ec9461 100644
--- a/ext/domxml/php_domxml.c
+++ b/ext/domxml/php_domxml.c
@@ -2846,20 +2846,12 @@ PHP_FUNCTION(html_doc_file)
PHP_FUNCTION(domxml_substitute_entities_default)
{
zend_bool enable;
- int old_val, new_val;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b", &enable) == FAILURE) {
return;
}
- new_val = (enable) ? 1 : 0;
- old_val = xmlSubstituteEntitiesDefault(new_val);
-
- if (old_val) {
- RETURN_TRUE;
- } else {
- RETURN_FALSE;
- }
+ RETURN_BOOL(xmlSubstituteEntitiesDefault(enable));
}
/* }}} */