[php-src] PR #25735: ext/reflection: Fix float default values losing precision in reflection output
| From: | jorgsowa | Date: | Wed, 25 Nov 2026 09:33:19 +0000 |
| Subject: | [php-src] PR #25735: ext/reflection: Fix float default values losing precision in reflection output | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40993@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25735
Author: jorgsowa
format_default_value() printed floats using the precision INI setting, while constant
expressions go through zend_ast_export(), which uses the shortest round-trip
representation. So $a = 0.30000000000000004 printed as 0.3, but $b = FOO +
0.30000000000000004 printed in full.
Follow-up https://github.com/php/php-src/pull/25461