Skip to content

Stdlib: metaphone() VM + LLVM JIT/AOT - #2426

Merged
PurHur merged 1 commit into
masterfrom
agent/stdlib-metaphone
May 26, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/stdlib-metaphone

Conversation

@PurHur

@PurHur PurHur commented May 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds metaphone() for PHP 8.2-compatible phonetic encoding (1–2 args, ASCII subset).
  • VM via VmMetaphone; JIT/AOT via phpc_metaphone.c and StringMetaphone (no PHP internal_* wrappers).
  • Compliance PHPT + AOT fixture + unit tests.

Test plan

  • vendor/bin/phpunit test/unit/MetaphoneBuiltinTest.php
  • vendor/bin/phpunit test/compliance/MetaphoneVMTest.php
  • vendor/bin/phpunit test/aot/AotTest.php --filter metaphone
  • vendor/bin/phpunit test/compliance/MetaphoneJITTest.php (Docker harness; LLVM 9)

Closes #2423

Made with Cursor

Add PHP 8-compatible metaphone() with native C runtime (phpc_metaphone.c),
VmMetaphone VM path, and compliance/AOT tests. Companion to soundex (#2416).

Closes #2423

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit e268c94 into master May 26, 2026
@PurHur
PurHur deleted the agent/stdlib-metaphone branch May 26, 2026 11:47
@PurHur PurHur mentioned this pull request May 26, 2026
2 of 3 tasks
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: metaphone() VM + LLVM JIT/AOT

1 participant