Skip to content

Stdlib: number_format() for displaying numbers in templates#217

Merged
PurHur merged 1 commit into
masterfrom
issue-206-number-format
May 18, 2026
Merged

Stdlib: number_format() for displaying numbers in templates#217
PurHur merged 1 commit into
masterfrom
issue-206-number-format

Conversation

@PurHur
Copy link
Copy Markdown
Owner

@PurHur PurHur commented May 18, 2026

Summary

  • Adds VM-only number_format() in ext/standard/number_format.php (int/float, decimals, custom separators)
  • Registers the builtin and adds compliance PHPT
  • Updates docs/capabilities.md

Closes #206

Test plan

  • test/compliance/cases/stdlib/number_format.phpt
  • php script/capability-matrix.php --check
  • Docker CI (php:8.2-cli-bookworm)

Made with Cursor

VM implementation with C-style separators; compliance PHPT and capability matrix updated. JIT deferred.

Closes #206

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur PurHur merged commit dba5f8e into master May 18, 2026
1 check passed
@PurHur PurHur deleted the issue-206-number-format branch May 18, 2026 17:41
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: number_format() for displaying numbers in templates

1 participant