|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-06-24 17:41 UTC] pierre dot php at gmail dot com
[2007-06-24 17:49 UTC] pierre dot php at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 14:00:01 2025 UTC |
Description: ------------ getFromName works but the data are troncated on some caracters (ex : 0xE0 , 0xE9 ... ) when used with FL_NODIR param. getFromName function and FL_NODIR param troncate the file on an accentuated caracter (in text file or extended caracter on binary file [ex : jpeg] / Caracters i have tested are 0xE0 and 0xE9 ). getFromName only works fine ... getFromIndex and FL_NODIR works fine ... System description : OS : Linux FC5 PHP : php.i386 5.1.6-1.5 ZIP : php-pecl-zip.i386 1.8.10-1.fc5 All install with YUM and standart packages. zip create by Winrar Reproduce code: --------------- $zip = new ZipArchive; $res = $zip->open('test.zip',ZIPARCHIVE::CREATE); if ($res === TRUE) { $zip->addFromString('test.txt', 'd?d?'); $zip->close(); $res = $zip->open('test.zip'); if ($res === TRUE) { echo $zip->getFromName( 'test.txt', ZIPARCHIVE::FL_NODIR ); echo '<br />'; echo $zip->getFromName( 'test.txt' ); echo '<br />'; $zip->close(); } } Expected result: ---------------- d?d? Actual result: -------------- d?