You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
printf %e / %f of NAN and INF prints lowercase nan/inf; php prints NaN and INF. #266
Known-bug repro: tests/aot/repro/wrong/printf_e_nonfinite.php — bash tests/aot/xfail.sh -k printf_e_nonfinite reports XFAIL while this is open and XPASS once it is fixed; then move the repro into tests/aot/cases/ and close this issue.
Runtime-format path (non-literal format, vsprintf, number formatting through __mc_format) now prints NaN / INF / -INF like php (branch bcmath). A literal format string still compiles to an inline C snprintf and prints lowercase nan / inf: routing every float conversion through the runtime engine to cover that rare case would slow the common printf('%.2f', $x) path, so this divergence is accepted by design. Close as won't-fix for the literal case, or reopen if a cheap runtime guard (isfinite branch around the snprintf) is wanted.
Activity
blacktrs commentedon Oct 15, 2026
Runtime-format path (non-literal format, vsprintf, number formatting through
__mc_format) now prints NaN / INF / -INF like php (branchbcmath). A literal format string still compiles to an inline Csnprintfand prints lowercasenan/inf: routing every float conversion through the runtime engine to cover that rare case would slow the commonprintf('%.2f', $x)path, so this divergence is accepted by design. Close as won't-fix for the literal case, or reopen if a cheap runtime guard (isfinite branch around the snprintf) is wanted.printf/sprintf: non-finite floats format as NaN/INF/-INF like php (Fixes