Skip to content

Stdlib: XMLReader moveToAttribute/moveToElement/next (#19395) - #19867

Merged
PurHur merged 1 commit into
masterfrom
agent/ext-xml-19395-moveto-next
Jul 17, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/ext-xml-19395-moveto-next

Conversation

@PurHur

@PurHur PurHur commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • Implements XMLReader::moveToAttribute, moveToFirstAttribute, moveToNextAttribute, moveToElement, and next([string $name]) in PHP-in-PHP (VmXmlReader + attribute cursor on XmlReaderState).
  • Matches php-src ext/xmlreader/php_xmlreader.c / libxml xmlTextReaderMoveTo* + xmlTextReaderNext.
  • Compliance + unit + inventory/spine sync (5295/5295).

Closes #19395

php-src reference

Test plan

  • php bin/vm.php test/repro/maintainer_gap_xmlreader_move_next.php — matches Zend
  • php bin/jit.php test/repro/maintainer_gap_xmlreader_move_next.php — same
  • ./script/phpunit.sh --filter 'XmlReaderTest|move_to_attribute_next' — OK
  • php script/bootstrap-inventory.php --check — OK 5295/5295
  • spine coverage/count/roadmap sync — OK

Notes

Made with Cursor

Implement attribute-cursor and sibling-skip APIs in PHP-in-PHP (VmXmlReader)
to match php-src xmlTextReaderMoveTo* / xmlTextReaderNext semantics.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit 785b4b8 into master Jul 17, 2026
1 check passed
@PurHur
PurHur deleted the agent/ext-xml-19395-moveto-next branch July 17, 2026 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stdlib: XMLReader moveToAttribute/moveToElement/next missing — Fatal undefined method (ext/xmlreader/php_xmlreader.c)

1 participant