note 64590 rejected from function.extract by nlopess
| From: | nlopess@php.net | Date: | Wed, 19 Apr 2006 10:38:43 +0000 |
| Subject: | note 64590 rejected from function.extract by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-108551@lists.php.net to get a copy of this message | ||
Note Submitter: gallard at mmic dot net
----
Be warned that extract does not work well if the key contains accented characters. That key is
skipped.
My version is 5.0.4
Exemple:
function Test() {
$x['aa']=1;
$x['ae']=2;
$x['aé']=3;
$x['af']=4;
extract($x);
print_r( get_defined_vars(),1));
}
will report:
Array
(
[x] => Array
(
[aa] => 1
[ae] => 2
[aé] => 3
[af] => 4
)
[aa] => 1
[ae] => 2
[af] => 4
)
Do you consider this is a bug?