1
0
mirror of https://github.com/php/php-src.git synced 2026-04-12 10:33:11 +02:00
Files
archived-php-src/ext/intl/formatter
Christoph M. Becker c2935499b1 Fix #79212: NumberFormatter::format() may detect wrong type
We have to convert to number *before* detecting the type, to cater to
internal objects implementing `cast_object`.

We also get rid of the fallback behavior of using `FORMAT_TYPE_INT32`,
because that can no longer happen; after `convert_scalar_to_number_ex`
the type is either `IS_LONG` or `IS_DOUBLE`.  We cater explicitly to
the `IS_ARRAY` case what also avoids triggering a type confusion when
`::TYPE_INT64` is passed as `$type`.
2020-02-03 12:28:32 +01:00
..
2017-12-07 19:24:55 +03:00
2015-01-10 15:07:38 -08:00
2015-01-10 15:07:38 -08:00
2014-09-19 18:33:14 +02:00
2014-09-19 18:33:14 +02:00
2015-01-10 15:07:38 -08:00
2014-09-19 18:33:14 +02:00