note 64590 added to function.extract
| From: | gallard at mmic dot net | Date: | Wed, 19 Apr 2006 03:33:59 +0000 |
| Subject: | note 64590 added to function.extract | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-108485@lists.php.net to get a copy of this message | ||
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?
----
Server IP: 66.207.199.35
Probable Submitter: 67.68.236.180
----
X-Spam-Status: Yes, hits=7.4 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER,
HEAD_ILLEGAL_CHARS autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.extract.php
Edit -- http://master.php.net/note/edit/64590
Del: integrated -- http://master.php.net/note/delete/64590/integrated
Del: useless -- http://master.php.net/note/delete/64590/useless
Del: bad code -- http://master.php.net/note/delete/64590/bad+code
Del: spam -- http://master.php.net/note/delete/64590/spam
Del: non-english -- http://master.php.net/note/delete/64590/non-english
Del: in docs -- http://master.php.net/note/delete/64590/in+docs
Del: other reasons-- http://master.php.net/note/delete/64590
Reject -- http://master.php.net/note/reject/64590
Search -- http://master.php.net/manage/user-notes.php