xref: /php-src/ext/standard/tests/bug80915.phpt (revision 206fd35a)
1--TEST--
2Bug #80915: Taking a reference to $_SERVER hides its values from phpinfo()
3--FILE--
4<?php
5
6$_ENV = [];
7$_SERVER = [ 'test' => 'test' ];
8
9$reference =& $_SERVER;
10
11phpinfo(INFO_VARIABLES);
12
13?>
14--EXPECT--
15phpinfo()
16
17PHP Variables
18
19Variable => Value
20$_SERVER['test'] => test
21