Strings That Look Like Huge Floating Point Numbers

Fix #4776. DefaultValueBinder treats strings that look like scientific notation as floats. However, if Php evaluates them as `INF`, this can cause problems for Excel. A one-line change to DefaultValueBinder avoids this situation. Tests are added for DefaultValueBinder, and also for StringValueBinder and AdvancedValueBinder, although those extend DefaultValueBinder and needed no code changes.
This commit is contained in:
oleibman
2026-01-01 17:50:36 -08:00
parent 0544868f90
commit e92b538efa
5 changed files with 49 additions and 15 deletions
+3
View File
@@ -86,4 +86,7 @@ return [
'Issue 1310 Multiple = at start' => ['s', '======'],
'Issue 1310 Variant 1' => ['s', '= ====='],
'Issue 1310 Variant 2' => ['s', '=2*3='],
'Issue 4766 very large positive exponent treated as string' => ['s', '4E433'],
'Issue 4766 very large negative exponent numeric' => ['n', '4E-433'],
'Issue 4766 small exponent no decimal point numeric' => ['n', '4E4'],
];