Re: Array map with reset function
| From: | Levi Morrison via internals | Date: | Tue, 25 Aug 2020 18:52:33 +0000 |
| Subject: | Re: Array map with reset function | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-111685@lists.php.net to get a copy of this message | ||
On Tue, Aug 25, 2020 at 11:47 AM Michael Voříšek - ČVUT FEL
<vorismi3@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.