Array recursion detection in PHP 8

php.internals

Michael Wallner

5 years ago
Hi, I wondered about PHP 8 detecting recursion earlier than used to and what caused that, respectively why it's caused. Compare the following output: https://3v4l.org/J7Niu Thanks in advance for any hints!
-- Regards, Mike

Michael Wallner

5 years ago
On 23/09/2020 14:07, Michael Wallner wrote:
> Hi, > > I wondered about PHP 8 detecting recursion earlier than used to and what > caused that, respectively why it's caused. Compare the following output: > > https://3v4l.org/J7Niu
Could it be that var_dump() was just adjusted to the output of print_r? https://3v4l.org/QVJS4 Then, sorry for the noise... ;)
-- Regards, Mike

Gabriel Caruso

5 years ago
On Wed, Sep 23, 2020, 14:38 Michael Wallner <mike@php.net> wrote:
> On 23/09/2020 14:07, Michael Wallner wrote: > > Hi, > > > > I wondered about PHP 8 detecting recursion earlier than used to and what > > caused that, respectively why it's caused. Compare the following output: > > > > https://3v4l.org/J7Niu > > Could it be that var_dump() was just adjusted to the output of print_r? > > https://3v4l.org/QVJS4 > > Then, sorry for the noise... ;) > > > -- > Regards, > Mike >
It was changed via https://github.com/php/php-src/pull/5171.