version 1.1.1.2, 2012/05/29 12:34:37
|
version 1.1.1.3, 2013/07/22 01:31:40
|
Line 2
|
Line 2
|
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| PHP Version 5 | |
| PHP Version 5 | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| Copyright (c) 1997-2012 The PHP Group | | | Copyright (c) 1997-2013 The PHP Group | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| This source file is subject to version 3.01 of the PHP license, | |
| This source file is subject to version 3.01 of the PHP license, | |
| that is bundled with this package in the file LICENSE, and is | |
| that is bundled with this package in the file LICENSE, and is | |
Line 177 PHP_METHOD(domelement, __construct)
|
Line 177 PHP_METHOD(domelement, __construct)
|
RETURN_FALSE; |
RETURN_FALSE; |
} |
} |
|
|
/* Namespace logic is seperate and only when uri passed in to insure no BC breakage */ | /* Namespace logic is separate and only when uri passed in to insure no BC breakage */ |
if (uri_len > 0) { |
if (uri_len > 0) { |
errorcode = dom_check_qname(name, &localname, &prefix, uri_len, name_len); |
errorcode = dom_check_qname(name, &localname, &prefix, uri_len, name_len); |
if (errorcode == 0) { |
if (errorcode == 0) { |
Line 832 PHP_FUNCTION(dom_element_set_attribute_ns)
|
Line 832 PHP_FUNCTION(dom_element_set_attribute_ns)
|
} |
} |
|
|
if (errorcode == 0 && is_xmlns == 0) { |
if (errorcode == 0 && is_xmlns == 0) { |
attr = xmlSetNsProp(elemp, nsptr, (xmlChar *)localname, (xmlChar *)value); | xmlSetNsProp(elemp, nsptr, (xmlChar *)localname, (xmlChar *)value); |
} |
} |
} else { |
} else { |
name_valid = xmlValidateName((xmlChar *) localname, 0); |
name_valid = xmlValidateName((xmlChar *) localname, 0); |
Line 844 PHP_FUNCTION(dom_element_set_attribute_ns)
|
Line 844 PHP_FUNCTION(dom_element_set_attribute_ns)
|
if (attr != NULL && attr->type != XML_ATTRIBUTE_DECL) { |
if (attr != NULL && attr->type != XML_ATTRIBUTE_DECL) { |
node_list_unlink(attr->children TSRMLS_CC); |
node_list_unlink(attr->children TSRMLS_CC); |
} |
} |
attr = xmlSetProp(elemp, (xmlChar *)localname, (xmlChar *)value); | xmlSetProp(elemp, (xmlChar *)localname, (xmlChar *)value); |
} |
} |
} |
} |
} |
} |