#37593 [Opn->Fbk]: extract() does not work for accented keys

From: Date: Tue, 30 May 2006 09:58:58 +0000
Subject: #37593 [Opn->Fbk]: extract() does not work for accented keys
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-97794@lists.php.net to get a copy of this message
ID: 37593 Updated by: tony2001@php.net Reported By: gallard at mmic dot net -Status: Open +Status: Feedback -Bug Type: *Languages/Translation +Bug Type: Arrays related Operating System: Linux Mandriva 2006 PHP Version: 5.1.4 New Comment: What if you try with this array? $x['aq']=1; $x['aw']=2; $x['aé']=3; $x['az']=4; And with a newer PHP version? Previous Comments: ------------------------------------------------------------------------ [2006-05-25 21:48:46] gallard at mmic dot net Description: ------------ Problem seen in PHP5.0.4 extract() will not extract an array element if the key name contain an accented character. In the following example, the third element is not extracted. Reproduce code: --------------- $x['aa']=1; $x['ae']=2; $x['aé']=3; $x['af']=4; extract($x); print_r( get_defined_vars()); Expected result: ---------------- Array ( [x] => Array ( [aa] => 1 [ae] => 2 [aé] => 3 [af] => 4 ) [aa] => 1 [ae] => 2 [aé] => 3 [af] => 4 ) Actual result: -------------- Array ( [x] => Array ( [aa] => 1 [ae] => 2 [aé] => 3 [af] => 4 ) [aa] => 1 [ae] => 2 [af] => 4 ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37593&edit=1

« previous php.bugs (#97794) next »