On Tue, Aug 25, 2020 at 11:47 AM Michael Voříšek - ČVUT FEL
<voris...@fel.cvut.cz> wrote:
>
> The following code stopped working in PHP 8:
>
> https://3v4l.org/UlIE3
>
> is it a bug or a feature?
>
> is posting issues like this to internals@lists.php.net email prefered
> over opening bug directly? or is there any special email for it?
>
> With kind regards / Mit freundlichen Grüßen / S přátelským pozdravem,
>
> Michael Voříšek

The documentation for array_map doesn't mention references at all. I'm
inclined to believe it to be an intentional warning, but it may be a
regression.

I recommend using array_walk, as it _does_ mention reference support.

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to