aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/linters/src/Linters/NoStdCollectionsMaps.php
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-16 16:24:56 +0900
committernsfisis <nsfisis@gmail.com>2026-08-16 16:47:52 +0900
commit5e4bd47bf92e2fe151e3905ee8ab9972c9f70f8d (patch)
tree443ba0ba88d91fc5e84c9e1554d2d0dc78b6633d /scripts/linters/src/Linters/NoStdCollectionsMaps.php
parentd8992fd631ed66b85e784e7dd3fca77ce979c00a (diff)
downloadphp-shirabe-5e4bd47bf92e2fe151e3905ee8ab9972c9f70f8d.tar.gz
php-shirabe-5e4bd47bf92e2fe151e3905ee8ab9972c9f70f8d.tar.zst
php-shirabe-5e4bd47bf92e2fe151e3905ee8ab9972c9f70f8d.zip
fix(php-shim): render floats through php_gcvt
serialize(), var_export() and the string cast each hand-rolled `format!("{}", f)`, which never emits PHP's exponential spelling and carries the wrong precision for the string cast. PHP writes 1.0E+20 where Rust writes 1e20, and (string) 1/3 is 0.33333333333333, not the shortest round-trip form. Delegate all three to smart_str_append_double, which shirabe-php-src already provides and shirabe-php-rpc's codec already used: precision -1 for serialize() and var_export(), 14 for the string cast. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'scripts/linters/src/Linters/NoStdCollectionsMaps.php')
0 files changed, 0 insertions, 0 deletions