#34166 [Opn->Asn]: extract failed to operate len>1 varname on unicode enabled
| From: | sniper@php.net | Date: | Wed, 17 Aug 2005 17:29:34 +0000 |
| Subject: | #34166 [Opn->Asn]: extract failed to operate len>1 varname on unicode enabled | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-83721@lists.php.net to get a copy of this message | ||
ID: 34166
Updated by: sniper@php.net
Reported By: xuefer at 21cn dot com
-Status: Open
+Status: Assigned
Bug Type: Arrays related
Operating System: gentoo linux
PHP Version: 6CVS-2005-08-17 (CVS)
-Assigned To:
+Assigned To: andrei
New Comment:
For Andrei, from Finland with love. :)
Previous Comments:
------------------------------------------------------------------------
[2005-08-17 10:13:45] xuefer at 21cn dot com
Description:
------------
broken after unicode patch merged
Reproduce code:
---------------
<?php
function test() {
extract(array('a' => 1, 'ab' => 1));
var_dump(get_defined_vars());
}
test();
?>
Expected result:
----------------
./sapi/cgi/php -dunicode_semantics=on a.php
Content-type: text/html; charset=UTF-8
X-Powered-By: PHP/6.0.0-dev
array(2) {
[u"a"]=>
int(1)
[u"ab"]=>
int(1)
}
Actual result:
--------------
./sapi/cgi/php -dunicode_semantics=on a.php
Content-type: text/html; charset=UTF-8
X-Powered-By: PHP/6.0.0-dev
array(2) {
[u"a"]=>
int(1)
[u"a"]=>
int(1)
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34166&edit=1