]> granicus.if.org Git - php/commitdiff
Allow NULL namespaceURI for getAttributeNodeNS
authorRob Richards <rrichards@php.net>
Thu, 7 Jul 2005 10:36:08 +0000 (10:36 +0000)
committerRob Richards <rrichards@php.net>
Thu, 7 Jul 2005 10:36:08 +0000 (10:36 +0000)
ext/dom/element.c

index 09ba77df0c834d18d79b5f6d5bc414e72679d930..f121715134fa07cd5afc7343604ee6e566aca156 100644 (file)
@@ -671,7 +671,7 @@ PHP_FUNCTION(dom_element_get_attribute_node_ns)
        int uri_len, name_len, ret;
        char *uri, *name;
 
-       if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oss", &id, dom_element_class_entry, &uri, &uri_len, &name, &name_len) == FAILURE) {
+       if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os!s", &id, dom_element_class_entry, &uri, &uri_len, &name, &name_len) == FAILURE) {
                return;
        }