File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -859,7 +859,6 @@ PHP_METHOD(DOMDocument, createElementNS)
859
859
zval * id ;
860
860
xmlDocPtr docp ;
861
861
xmlNodePtr nodep = NULL ;
862
- xmlNsPtr nsptr = NULL ;
863
862
int ret ;
864
863
size_t uri_len = 0 , name_len = 0 , value_len = 0 ;
865
864
char * uri , * name , * value = NULL ;
@@ -880,7 +879,7 @@ PHP_METHOD(DOMDocument, createElementNS)
880
879
if (xmlValidateName ((xmlChar * ) localname , 0 ) == 0 ) {
881
880
nodep = xmlNewDocNode (docp , NULL , (xmlChar * ) localname , (xmlChar * ) value );
882
881
if (nodep != NULL && uri != NULL ) {
883
- nsptr = xmlSearchNsByHref (nodep -> doc , nodep , (xmlChar * ) uri );
882
+ xmlNsPtr nsptr = xmlSearchNsByHref (nodep -> doc , nodep , (xmlChar * ) uri );
884
883
if (nsptr == NULL ) {
885
884
nsptr = dom_get_ns (nodep , uri , & errorcode , prefix );
886
885
}
@@ -908,9 +907,6 @@ PHP_METHOD(DOMDocument, createElementNS)
908
907
RETURN_FALSE ;
909
908
}
910
909
911
-
912
- nodep -> ns = nsptr ;
913
-
914
910
DOM_RET_OBJ (nodep , & ret , intern );
915
911
}
916
912
/* }}} end dom_document_create_element_ns */
You can’t perform that action at this time.
0 commit comments