Skip to content

Perf: printf/sprintf %b of floats and overflow longs match Zend (#36386) - #37078

Merged
PurHur merged 1 commit into
masterfrom
agent/issue-36386-perf-next-slice
Sep 6, 2026
Merged

Perf: printf/sprintf %b of floats and overflow longs match Zend (#36386)#37078
PurHur merged 1 commit into
masterfrom
agent/issue-36386-perf-next-slice

Conversation

@PurHur

@PurHur PurHur commented Sep 6, 2026

Copy link
Copy Markdown
Owner

Summary

php-src: ext/standard/formatted_print.c %b (unsigned machine-word bit pattern) / zval_get_long; Zend/zend_operators.h zend_dval_to_lval.

Test plan

  • ./script/phpunit.sh --filter 'SprintfPercentBAotTest|SprintfPercentDFloatAotTest|SprintfOverflowableNativeLongAotTest|EchoOverflowableNativeLongAotTest'18/18 OK (90 assertions)
  • ./script/aot-smoke.sh9/9 + size gate OK
  • make north-star5-verify-fast → OK (spine 8353/8353)
  • Not run: full script/differential-sweep.sh --aot --repeat 3 (sprintf %b coercion only; peer of Perf: printf/sprintf %d of floats and overflow longs match Zend (#36386) #37075)

Closes nothing (Part of #36386).

Made with Cursor

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