1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 11:32:11 +02:00
Files
archived-php-src/ext
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
..
2019-12-16 10:32:49 -08:00
2020-01-11 06:15:32 +14:00
2019-10-31 16:08:38 +01:00
2019-12-16 10:04:03 -08:00
2019-07-15 15:20:15 +02:00
2019-04-06 19:06:16 -07:00
2019-10-08 12:10:06 +02:00
2019-04-23 12:43:32 +02:00
2019-08-20 13:58:22 +02:00
2019-02-20 11:11:06 +11:00
2019-08-28 17:57:10 +02:00
2020-01-21 16:17:25 +01:00
2019-04-06 01:27:58 +02:00
2019-04-10 13:06:55 +02:00
2019-08-09 10:32:56 +02:00
2020-01-17 11:37:35 +01:00
2019-10-01 11:15:12 +02:00
2020-01-23 14:20:26 +01:00
2019-10-08 09:48:59 +02:00