Skip to content

Stdlib: htmlentities() and html_entity_decode() (#2472) - #2473

Merged
PurHur merged 1 commit into
masterfrom
issue-2472-htmlentities
May 26, 2026
Merged

PurHur merged 1 commit into
masterfrom
issue-2472-htmlentities

Conversation

@PurHur

@PurHur PurHur commented May 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add htmlentities() and html_entity_decode() for the static web subset, reusing the existing htmlspecialchars / htmlspecialchars_decode entity set with ENT_COMPAT defaults (Stdlib: htmlentities() and html_entity_decode() VM + LLVM JIT/AOT #2472).
  • Wire VM builtins, JIT lowering via __string__htmlspecialchars*, and AOT through the same LLVM helpers already linked for htmlspecialchars.
  • Add VM/JIT compliance PHPT, AOT fixture, unit coverage, and capability matrix rows.

Test plan

  • vendor/bin/phpunit test/compliance/HtmlentitiesVMTest.php
  • vendor/bin/phpunit test/unit/HtmlentitiesBuiltinTest.php
  • vendor/bin/phpunit test/aot/AotTest.php --filter htmlentities
  • vendor/bin/phpunit test/compliance/HtmlentitiesJITTest.php (LLVM; harness JIT MCJIT currently mass-fails unrelated to this change)

Closes #2472

Made with Cursor

Add VM builtins delegating to the existing htmlspecialchars entity subset,
with ENT_COMPAT defaults and JIT/AOT lowering via the shared LLVM helpers.
Includes compliance PHPT, AOT fixture, and capability matrix rows.

Co-authored-by: Cursor <cursoragent@cursor.com>
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: htmlentities() and html_entity_decode() VM + LLVM JIT/AOT

1 participant