1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 02:02:32 +01:00
Files
archived-php-src/ext/standard/tests/array/bug42233.phpt
2007-08-10 12:23:16 +00:00

48 lines
632 B
PHP

--TEST--
Bug #42233 (extract(): scandic characters not allowed as variable name)
--FILE--
<?php
$test = array(
'a' => '1',
'æ' => '2',
'æøåäö' => '3',
);
var_dump($test);
var_dump(extract($test));
var_dump($a);
var_dump();
var_dump($æøåäö);
echo "Done.\n";
?>
--EXPECT--
array(3) {
["a"]=>
string(1) "1"
["æ"]=>
string(1) "2"
["æøåäö"]=>
string(1) "3"
}
int(3)
string(1) "1"
string(1) "2"
string(1) "3"
Done.
--UEXPECT--
array(3) {
[u"a"]=>
unicode(1) "1"
[u"æ"]=>
unicode(1) "2"
[u"æøåäö"]=>
unicode(1) "3"
}
int(3)
unicode(1) "1"
unicode(1) "2"
unicode(1) "3"
Done.