php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34166 extract failed to operate len>1 varname on unicode enabled
Submitted: 2005-08-17 10:13 UTC Modified: 2005-08-20 09:56 UTC
From: xuefer at 21cn dot com Assigned: andrei (profile)
Status: Closed Package: Arrays related
PHP Version: 6CVS-2005-08-17 (CVS) OS: gentoo linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: xuefer at 21cn dot com
New email:
PHP Version: OS:

 

 [2005-08-17 10:13 UTC] 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)
}

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-17 19:29 UTC] sniper@php.net
For Andrei, from Finland with love. :)
 [2005-08-20 09:56 UTC] xuefer at 21cn dot com
looks like it's fixed in cvs.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Sep 29 01:01:26 2024 UTC