Re: Don't silence chr function arguments error
| From: | Sara Golemon | Date: | Mon, 29 Apr 2019 16:01:22 +0000 |
| Subject: | Re: Don't silence chr function arguments error | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-105511@lists.php.net to get a copy of this message | ||
On Mon, Apr 29, 2019 at 2:37 AM Nikita Popov <nikita.ppv@gmail.com> wrote:
> > The idea is to merge in PHP-7.4, but if there's a consensus that this
>> > should go into PHP 8 only, so it is :)
>> >
>> > Technically a BC break, so 8.0 would be the preferred branch IMO.
>>
>
> As this would be a TypeError on 8.0, I think it might make sense to
> introduce it in 7.4 where this is still a warning (and should keep the
> current "\0" return value in that case -- just make it throw a warning).
>
> Sounds good to me.