xref: /PHP-8.2/ext/standard/tests/bug81048.phpt (revision 36b9bdee)
1--TEST--
2Bug #81048 (phpinfo(INFO_VARIABLES) "Array to string conversion")
3--FILE--
4<?php
5
6$_ENV = [];
7$_SERVER = ['foo' => ['bar' => ['baz' => 'qux']]];
8
9array_walk_recursive($_SERVER, function($value, $key) {
10    // NOP
11});
12
13phpinfo(INFO_VARIABLES);
14?>
15--EXPECT--
16phpinfo()
17
18PHP Variables
19
20Variable => Value
21$_SERVER['foo'] => Array
22(
23    [bar] => Array
24        (
25            [baz] => qux
26        )
27
28)
29