ID: 42233 Updated by: [EMAIL PROTECTED] -Summary: Problems with æøå in extract() Reported By: hkb at hkb dot it Status: Open Bug Type: Variables related Operating System: Windows 2003 PHP Version: 5.2.4RC1 New Comment:
My not-so-elegant patch to fix the issue: http://pecl.php.net/~jani/patches/bug_42233.patch Previous Comments: ------------------------------------------------------------------------ [2007-08-07 14:57:21] [EMAIL PROTECTED] This happens because extract() uses isalpha() for checking the validity of variable name. Fix brewing.. ------------------------------------------------------------------------ [2007-08-07 13:11:23] hkb at hkb dot it Description: ------------ I Just updated PHP today from 5.2.0 to PHP 5.2.3 and found that extract() didnt work if the array containes the danish letters "æ", "ø" or "å"... Try running the code below ant you will see that $æ is empty when it should be "2"... I hope you will fix this bug for your next release... Reproduce code: --------------- $test[0] = array("e" => "2", "æ" => "2"); print_r($test[0]); extract($test[0]); echo "<br /><br />".$e." - ".$test[0]['e']; echo "<br /><br />".$æ." - ".$test[0]['æ']; Expected result: ---------------- Array ( [e] => 2 [æ] => 2 ) 2 - 2 2 - 2 Actual result: -------------- Array ( [e] => 2 [æ] => 2 ) 2 - 2 - 2 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42233&edit=1