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)
859859 zval * id ;
860860 xmlDocPtr docp ;
861861 xmlNodePtr nodep = NULL ;
862- xmlNsPtr nsptr = NULL ;
863862 int ret ;
864863 size_t uri_len = 0 , name_len = 0 , value_len = 0 ;
865864 char * uri , * name , * value = NULL ;
@@ -880,7 +879,7 @@ PHP_METHOD(DOMDocument, createElementNS)
880879 if (xmlValidateName ((xmlChar * ) localname , 0 ) == 0 ) {
881880 nodep = xmlNewDocNode (docp , NULL , (xmlChar * ) localname , (xmlChar * ) value );
882881 if (nodep != NULL && uri != NULL ) {
883- nsptr = xmlSearchNsByHref (nodep -> doc , nodep , (xmlChar * ) uri );
882+ xmlNsPtr nsptr = xmlSearchNsByHref (nodep -> doc , nodep , (xmlChar * ) uri );
884883 if (nsptr == NULL ) {
885884 nsptr = dom_get_ns (nodep , uri , & errorcode , prefix );
886885 }
@@ -908,9 +907,6 @@ PHP_METHOD(DOMDocument, createElementNS)
908907 RETURN_FALSE ;
909908 }
910909
911-
912- nodep -> ns = nsptr ;
913-
914910 DOM_RET_OBJ (nodep , & ret , intern );
915911}
916912/* }}} end dom_document_create_element_ns */
You can’t perform that action at this time.
0 commit comments