Skip to content

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

Closed

Description

@PurHur

Problem

Web apps use base64 for tokens, Basic auth headers, and binary-safe transport. These functions are not in ext/standard/Module.php.

Goal

Native VM + LLVM JIT/AOT (no PHP internal_* wrappers), subset matching PHP 8:

  • base64_encode(string $data): string
  • base64_decode(string $data): string|false (non-strict; ignore chars outside alphabet)

Acceptance

  • compliance + JIT PHPT, AOT fixtures, unit smoke
  • ./script/ci-local.sh --filter base64 green in Docker

Related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions