xref: /php-src/ext/standard/tests/array/bug42233.phpt (revision f8d79582)
1--TEST--
2Bug #42233 (extract(): scandic characters not allowed as variable name)
3--FILE--
4<?php
5
6$test = array(
7    'a'     => '1',
8    'æ'     => '2',
9    'æøåäö' => '3',
10);
11
12var_dump($test);
13var_dump(extract($test));
14var_dump($a);
15var_dump($æ);
16var_dump($æøåäö);
17
18echo "Done.\n";
19?>
20--EXPECT--
21array(3) {
22  ["a"]=>
23  string(1) "1"
24  ["æ"]=>
25  string(1) "2"
26  ["æøåäö"]=>
27  string(1) "3"
28}
29int(3)
30string(1) "1"
31string(1) "2"
32string(1) "3"
33Done.
34