#50678 [NEW]: files extracted by ZipArchive class lost their original modified time

From: Date: Wed, 06 Jan 2010 15:58:51 +0000
Subject: #50678 [NEW]: files extracted by ZipArchive class lost their original modified time
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-146383@lists.php.net to get a copy of this message
From: sunchaojun at gmail dot com Operating system: windows PHP version: 5.2.12 PHP Bug Type: Zip Related Bug description: files extracted by ZipArchive class lost their original modified time Description: ------------ After I extract a zip file via ZipArchive class in my php codes, I found that the creation time, modified time and lastaccess time of the files extracted have been set to the time at that it was being extracted. Reproduce code: --------------- --- From manual page: class.ziparchive --- $zip = new ZipArchive(); if ($zip->open('test.zip')) { zip->extractTo zip.close() } Expected result: ---------------- A extracted files has the same creation time, modified time and lastaccess time with its oringinal copy. Actual result: -------------- The creation time, modified time and lastaccess time of a extracted file has been reset when extracting. -- Edit bug report at http://bugs.php.net/?id=50678&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50678&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50678&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50678&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50678&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50678&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50678&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50678&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50678&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50678&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50678&r=support Expected behavior: http://bugs.php.net/fix.php?id=50678&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50678&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50678&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50678&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50678&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50678&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50678&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50678&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50678&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50678&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50678&r=mysqlcfg

« previous php.bugs (#146383) next »