]> granicus.if.org Git - php/commitdiff
Changed getParameters() to zend_get_parameters_ex().
authorIlia Alshanetsky <iliaa@php.net>
Tue, 14 Jan 2003 20:07:52 +0000 (20:07 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 14 Jan 2003 20:07:52 +0000 (20:07 +0000)
ext/domxml/php_domxml.c

index 92d682aea71dc2076161e552c43e78a296cb146d..173f648c47760598b71f2d914c79f42f7a1ed52e 100644 (file)
@@ -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) {