Skip to content

Stdlib: binary/octal radix conversion and PHPT specs - #9

Merged
PurHur merged 1 commit into
masterfrom
stdlib-bin-oct-radix
May 17, 2026
Merged

Stdlib: binary/octal radix conversion and PHPT specs#9
PurHur merged 1 commit into
masterfrom
stdlib-bin-oct-radix

Conversation

@PurHur

@PurHur PurHur commented May 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add decbin() as a compiled PHP builtin (non-negative integers).
  • Add decoct(), bindec(), and octdec() with VM and JIT support (mirroring dechex/hexdec).
  • Add compliance PHPT specs and an integration test for round-trip binary/octal conversions.

Test plan

  • make test (Docker / CircleCI): full PHPUnit suite including new test/compliance/cases/stdlib/{decbin,bindec,decoct,octdec}.phpt and test/real/cases/stdlib_radix_casts.phpt

Made with Cursor

Add decbin (compiled PHP), decoct, bindec, and octdec with VM and JIT support,
plus compliance and integration tests for round-trip radix conversions.

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.

1 participant