Bug #51929 [NEW]: Extracted a zip file that contains a folder named with Chinese characters
| From: | kgo_yoi at hotmail dot com | Date: | Thu, 27 May 2010 11:36:22 +0000 |
| Subject: | Bug #51929 [NEW]: Extracted a zip file that contains a folder named with Chinese characters | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-150873@lists.php.net to get a copy of this message | ||
From:
Operating system: Windows XP Simplified Chinese
PHP version: 5.2.13
Package: Zip Related
Bug Type: Bug
Bug description:Extracted a zip file that contains a folder named with Chinese characters
Description:
------------
Extracted a zip file contains a folder named with Chinese characters, the
files in the folder is no longer in it.
e.g.
I have 2 zips, the one named en.zip contains a folder named English
en.zip
|- English
|- en.txt
the other named zh.zip contains a folder named 䏿
zh.zip
|- 䏿
|- zh.txt
Then I use ZipArchive to extract them,
Test script:
---------------
<?php
$zip = new ZipArchive;
$zip->open('en.zip');
$zip->extractTo('.');
$zip->close();
$zip->open('zh.zip');
$zip->extractTo('.');
$zip->close();
Expected result:
----------------
There are 2 folders, 'English' and '䏿', each folder contains a txt
file.
Actual result:
--------------
The 'English' folder contains a txt file named en.txt; the '䏿' folder
is empty and zh.txt is out of it.
--
Edit bug report at http://bugs.php.net/bug.php?id=51929&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51929&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51929&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=51929&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=51929&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51929&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=51929&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=51929&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=51929&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=51929&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=51929&r=support
Expected behavior: http://bugs.php.net/fix.php?id=51929&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=51929&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=51929&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=51929&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51929&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51929&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=51929&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=51929&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=51929&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=51929&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=51929&r=mysqlcfg