Skip to content

Stdlib: base64_encode() and base64_decode() VM + LLVM JIT/AOT - #983

Merged
PurHur merged 1 commit into
masterfrom
agent/stdlib-base64
May 23, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/stdlib-base64

Conversation

@PurHur

@PurHur PurHur commented May 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add base64_encode() and base64_decode() with native VM logic in VmString and LLVM lowering in JitBase64Encode / JitBase64Decode (no PHP internal_* wrappers).
  • Register builtins in ext/standard/Module.php, update capability matrix, and add compliance/JIT/AOT PHPT plus Base64BuiltinTest.

Test plan

  • php vendor/bin/phpunit --filter 'base64|Base64Builtin' in Docker (php-compiler:22.04-dev)
  • VM + JIT compliance PHPT and AOT fixtures for encode/decode roundtrip

Closes #978

Made with Cursor

Native RFC 4648 encoding for web-safe binary transport (issue #978).

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit bec034e into master May 23, 2026
@PurHur
PurHur deleted the agent/stdlib-base64 branch May 23, 2026 13:05
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: base64_encode() and base64_decode() VM + LLVM JIT/AOT

1 participant