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/namednodemap.c | |
| parent | c4c6d5213aad7c6829c5efa22b89310e66d1567b (diff) | |
| download | php-git-7e619b7f5f0e1dbae7204e6c1ae72676d69d5166.tar.gz | |
update constructors so they cant be called statically
Diffstat (limited to 'ext/dom/namednodemap.c')
| -rw-r--r-- | ext/dom/namednodemap.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/ext/dom/namednodemap.c b/ext/dom/namednodemap.c index 68a51648c1..877845fbcf 100644 --- a/ext/dom/namednodemap.c +++ b/ext/dom/namednodemap.c @@ -103,9 +103,7 @@ PHP_FUNCTION(dom_namednodemap_get_named_item) xmlNodePtr nodep; xmlNotation *notep = NULL; - id = getThis(); - - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &named, &namedlen) == FAILURE) { + if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os", &id, dom_namednodemap_class_entry, &named, &namedlen) == FAILURE) { return; } @@ -172,9 +170,7 @@ PHP_FUNCTION(dom_namednodemap_item) xmlNodePtr nodep, curnode; int count; - id = getThis(); - - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &index) == FAILURE) { + if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Ol", &id, dom_namednodemap_class_entry, &index) == FAILURE) { return; } @@ -229,9 +225,7 @@ PHP_FUNCTION(dom_namednodemap_get_named_item_ns) xmlNodePtr nodep; xmlNotation *notep = NULL; - id = getThis(); - - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &uri, &urilen, &named, &namedlen) == FAILURE) { + if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os!s", &id, dom_namednodemap_class_entry, &uri, &urilen, &named, &namedlen) == FAILURE) { return; } |
