diff options
author | Rob Richards <rrichards@php.net> | 2004-01-22 21:16:05 +0000 |
---|---|---|
committer | Rob Richards <rrichards@php.net> | 2004-01-22 21:16:05 +0000 |
commit | 7e619b7f5f0e1dbae7204e6c1ae72676d69d5166 (patch) | |
tree | 912ebbbd4fbfb881c8adfac6051bd0e6b7ef4a2d /ext/dom/cdatasection.c | |
parent | c4c6d5213aad7c6829c5efa22b89310e66d1567b (diff) | |
download | php-git-7e619b7f5f0e1dbae7204e6c1ae72676d69d5166.tar.gz |
update constructors so they cant be called statically
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) |