ID:               42233
 Updated by:       [EMAIL PROTECTED]
 Reported By:      hkb at hkb dot it
 Status:           Closed
 Bug Type:         Variables related
 Operating System: Windows 2003
 PHP Version:      5.2.4RC1
 Assigned To:      jani
 New Comment:

And fix fixed now too. (some extract() tests failed due to bad logic in
my earlier fix)


Previous Comments:
------------------------------------------------------------------------

[2007-08-08 08:04:53] [EMAIL PROTECTED]

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.



------------------------------------------------------------------------

[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

Reply via email to