#34166 [NEW]: extract failed to operate len>1 varname on unicode enabled
| From: | xuefer at 21cn dot com | Date: | Wed, 17 Aug 2005 08:13:45 +0000 |
| Subject: | #34166 [NEW]: extract failed to operate len>1 varname on unicode enabled | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-83679@lists.php.net to get a copy of this message | ||
From: xuefer at 21cn dot com
Operating system: gentoo linux
PHP version: 6CVS-2005-08-17 (CVS)
PHP Bug Type: Arrays related
Bug description: extract failed to operate len>1 varname on unicode enabled
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 bug report at http://bugs.php.net/?id=34166&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34166&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34166&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34166&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34166&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34166&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34166&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34166&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34166&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34166&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34166&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34166&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34166&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34166&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34166&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34166&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34166&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34166&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34166&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34166&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34166&r=mysqlcfg