xref: /PHP-8.2/ext/standard/tests/array/bug46873.phpt (revision 2dd8d6ff)
1--TEST--
2Bug #46873 (extract($foo) crashes if $foo['foo'] exists)
3--FILE--
4<?php
5$foo = array('foo' => 1, 'bar' => 2, 'test' => 3);
6extract($foo);
7var_dump($foo, $bar, $test);
8?>
9--EXPECT--
10int(1)
11int(2)
12int(3)
13