[PHP-DEV] Re: Alias for `int|float`

2022-09-27 Thread Olle Härstedt
>Hello, internals! > >What do you think about creating shorthand `number` for `int|float`? This is also related to allow all types of type-hints in the use-statement, like use int|float as numeric; Anyone interested in creating an RFC for this? Olle PS. Original thread here: https://extern

Re: [PHP-DEV] RFC [Discussion]: Improve unserialize() error handling

2022-09-27 Thread Tim Düsterhus
Hi On 9/8/22 18:36, Larry Garfield wrote: Either I guess? Honestly we should decide that in advance on the list. :-) E_WARNING+Exception in 9 is what I'd probably favor, with "Exception now" as a second choice. We've done this kind of two-step thing before; a lot of PHP 8 changes were vote

Re: [PHP-DEV] RFC [Discussion]: Improve unserialize() error handling

2022-09-27 Thread Larry Garfield
On Tue, Sep 27, 2022, at 3:01 PM, Tim Düsterhus wrote: > Hi > > On 9/8/22 18:36, Larry Garfield wrote: Either I guess? Honestly we should decide that in advance on the list. :-) E_WARNING+Exception in 9 is what I'd probably favor, with "Exception now" as a second choice. >>