Skip to content

Fix GH-12171: resolve SimpleXML nodes before equality compare - #23187

Open
iliaal wants to merge 1 commit into
php:PHP-8.4from
iliaal:fix/gh-12171-sxe-property-compare
Open

Fix GH-12171: resolve SimpleXML nodes before equality compare#23187
iliaal wants to merge 1 commit into
php:PHP-8.4from
iliaal:fix/gh-12171-sxe-property-compare

Conversation

@iliaal

@iliaal iliaal commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Property proxies like $xml->first store the parent node plus an element iterator name. sxe_objects_compare compared the parent wrappers, so sibling proxies always compared equal. Resolve each side through php_sxe_get_first_node_non_destructive before comparing.

Property proxies like $xml->first store the parent node plus an element
iterator name. sxe_objects_compare compared the parent wrappers, so
sibling proxies always compared equal. Resolve each side through
php_sxe_get_first_node_non_destructive before comparing.

Fixes phpGH-12171
Closes phpGH-23187
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant