Skip to content

Conversation

@camporter
Copy link
Contributor

@camporter camporter commented Oct 6, 2018

Fixes bug #50675.

@camporter camporter changed the title Stop overwriting the node name when creating XML nodes from zvals SOAP: Stop overwriting the node name when creating XML nodes from zvals Oct 6, 2018
return 0;
}
xmlNodeSetName(node, node_ptr->name);
xmlSetNs(node, node_ptr->ns);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the name is no longer set, should the NS set also be dropped?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nikic I believe this is probably also problematic, but I will need a test case before being comfortable with removing it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to come up with a case where there'd be different namespaces, but had trouble. Comparing test runs with and without the namespace copied didn't make a difference.

@php-pulls
Copy link

Comment on behalf of petk at php.net:

Labelling

@php-pulls php-pulls added the Bug label Oct 12, 2018
@nikic
Copy link
Member

nikic commented Oct 23, 2018

Merged as db47e35 into 7.2+.

I've included the removal of the namespace setting as well. Even if the namespace cannot actually differ, I don't think it makes sense to copy the namespace if we're no longer copying the name.

I'm not applying this to 7.1 as this seems like a fairly risky change to make immediately before end of active support.

@nikic nikic closed this Oct 23, 2018
@camporter camporter deleted the fix_bug_50675 branch October 24, 2018 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants