xref: /PHP-8.2/ext/standard/tests/array/bug78759.phpt (revision ee243bc4)
1--TEST--
2Bug #78759: array_search in $GLOBALS
3--FILE--
4<?php
5
6$a = 22;
7var_dump($GLOBALS["a"]);
8var_dump(array_search(22, $GLOBALS));
9var_dump(array_search(22, $GLOBALS, true));
10
11?>
12--EXPECT--
13int(22)
14string(1) "a"
15string(1) "a"
16