diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-01-14 20:07:52 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-01-14 20:07:52 +0000 |
commit | 74e34d1657a6bd1fe1094d207a23833a5e34ae20 (patch) | |
tree | fad0ce3daf112f77fef000203f075eebf8f83057 /ext/domxml | |
parent | 1dbf11e1ba1ce80678bba4fc72c8b3102d2f2029 (diff) | |
download | php-git-74e34d1657a6bd1fe1094d207a23833a5e34ae20.tar.gz |
Changed getParameters() to zend_get_parameters_ex().
Diffstat (limited to 'ext/domxml')
-rw-r--r-- | ext/domxml/php_domxml.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index 92d682aea7..173f648c47 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -1636,13 +1636,14 @@ PHP_MINIT_FUNCTION(domxml) Unity function for testing */ PHP_FUNCTION(domxml_test) { - zval *id; + zval **id; - if ((ZEND_NUM_ARGS() != 1) || getParameters(ht, 1, &id) == FAILURE) + if (ZEND_NUM_ARGS() != 1 || (zend_get_parameters_ex(1, &id) == FAILURE)) { WRONG_PARAM_COUNT; + } - convert_to_long(id); - RETURN_LONG(Z_LVAL_P(id)); + convert_to_long_ex(id); + RETURN_LONG(Z_LVAL_PP(id)); } /* }}} */ @@ -2854,19 +2855,19 @@ PHP_FUNCTION(domxml_elem_get_attribute_node) /* since this function is not implemented, outcomment it for the time beeing PHP_FUNCTION(domxml_elem_set_attribute_node) { - zval *id, *arg1, *rv = NULL; + zval *id, **arg1, *rv = NULL; xmlNode *nodep; xmlAttr *attrp, *newattrp; int ret; - if ((ZEND_NUM_ARGS() == 1) && getParameters(ht, 1, &arg1) == SUCCESS) { - id = getThis(); - nodep = php_dom_get_object(id, le_domxmlelementp, 0 TSRMLS_CC); - attrp = php_dom_get_object(arg1, le_domxmlattrp, 0 TSRMLS_CC); - } else { + if ((ZEND_NUM_ARGS() == 1) && (zend_get_parameters_ex(1, &arg1) == FAILURE) { WRONG_PARAM_COUNT; } + id = getThis(); + nodep = php_dom_get_object(id, le_domxmlelementp, 0 TSRMLS_CC); + attrp = php_dom_get_object(*arg1, le_domxmlattrp, 0 TSRMLS_CC); + FIXME: The following line doesn't work newattrp = xmlCopyProp(nodep, attrp); if (!newattrp) { |