Re: Drop map/reduction/filter warnings
| From: | Nikita Popov | Date: | Tue, 02 Feb 2016 21:58:17 +0000 |
| Subject: | Re: Drop map/reduction/filter warnings | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-91059@lists.php.net to get a copy of this message | ||
On Tue, Feb 2, 2016 at 10:53 PM, Tim Bezhashvyly <tim.bezhashvyly@gmail.com>
wrote:
> Dear internals,
>
> I would like to propose the following RFC:
>
> If an exception is thrown inside array_reduce, array_map, array_filter,
> etc callback don't flush meaningless warnings like:
>
> > An error occurred while invoking the reduction callback ...
>
> but pass an exception from a closure outside.
>
> Currently this can be achieved by muting array_* with a @ but this is ugly.
>
This has already been fixed in PHP 7, see for example https://3v4l.org/GmnIV
.
Nikita