From: Rob Richards Date: Thu, 7 Jul 2005 10:36:08 +0000 (+0000) Subject: Allow NULL namespaceURI for getAttributeNodeNS X-Git-Tag: php-5.1.0b3~150 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b27d49579a123407b4fa5e572162075c0a0f5a62;p=php Allow NULL namespaceURI for getAttributeNodeNS --- diff --git a/ext/dom/element.c b/ext/dom/element.c index 09ba77df0c..f121715134 100644 --- a/ext/dom/element.c +++ b/ext/dom/element.c @@ -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; }