diff options
Diffstat (limited to 'ext/dom/cdatasection.c')
| -rw-r--r-- | ext/dom/cdatasection.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ext/dom/cdatasection.c b/ext/dom/cdatasection.c index 5d6e2402a4..0daab0bfcc 100644 --- a/ext/dom/cdatasection.c +++ b/ext/dom/cdatasection.c @@ -40,7 +40,7 @@ zend_function_entry php_dom_cdatasection_class_functions[] = { {NULL, NULL, NULL} }; -/* {{{ proto domnode dom_cdatasection_cdatasection([string value]); */ +/* {{{ proto domnode dom_cdatasection_cdatasection(string value); */ PHP_FUNCTION(dom_cdatasection_cdatasection) { @@ -50,13 +50,10 @@ PHP_FUNCTION(dom_cdatasection_cdatasection) char *value = NULL; int value_len; - id = getThis(); - - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &value, &value_len) == FAILURE) { + if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os", &id, dom_cdatasection_class_entry, &value, &value_len) == FAILURE) { return; } - nodep = xmlNewCDataBlock(NULL, (xmlChar *) value, value_len); if (!nodep) |
