#43055 [Opn->Fbk]: extract() failure on ASCII characters from 127 through 255 (0x7f-0xff).
| From: | scottmac@php.net | Date: | Sat, 20 Oct 2007 20:21:36 +0000 |
| Subject: | #43055 [Opn->Fbk]: extract() failure on ASCII characters from 127 through 255 (0x7f-0xff). | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-118770@lists.php.net to get a copy of this message | ||
ID: 43055
Updated by: scottmac@php.net
Reported By: sebastien dot cabot at umontreal dot ca
-Status: Open
+Status: Feedback
Bug Type: Variables related
Operating System: Linux
PHP Version: 5.2.4
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
I can't reproduce this with 5.2.5-dev
Previous Comments:
------------------------------------------------------------------------
[2007-10-20 19:52:24] sebastien dot cabot at umontreal dot ca
Description:
------------
extract() fail to treats keys as variable names when a key contains
ASCII characters from 127 through 255 (0x7f-0xff).
Reproduce code:
---------------
<?php
$été = "#";
$a = array('été' => '---');
echo extract($a); /* Failure: return 0 instead of 1 */
echo $été; /* Failure consequence, print '#' instead of '---' */
?>
Expected result:
----------------
1---
Actual result:
--------------
0#
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43055&edit=1