Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.0

Request #11258 Custom date/time in files added on-the-fly
Submitted: 2007-06-09 17:10 UTC
From: dot Assigned: mrook
Status: Closed Package: Archive_Tar (version 1.3.2)
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: 1.3.11    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 44 - 13 = ?

 
 [2007-06-09 17:10 UTC] dot (Adam Pilorz)
Description: ------------ In some particular situations it is useful, if you can specify the modification date/time yourself. When taring existing files you can change those files' dates, but while creating files on-the-fly they use current date/time (in 1.3.1 they were created with 0 timestamp). My proposition is to add this functionality to next version of Archive_Tar package. I have created a patch adding this feature to Tar.php file. For example when you keep your files in a database, or modify the files from disk before sending them to user, and want to send tar package of several files at once, you might want to tar them using original modification date/time. Included diff file is a difference between original Archive_Tar 1.3.2 and version modified by me including this feature. It is fully backward-compatible, as added parameter $p_datetime is set to false by default and while false is provided it is interpreted the same way as original Tar.php.

Comments

 [2012-11-12 20:45 UTC] mrook (Michiel Rook)
-Status: Open +Status: Closed -Assigned To: +Assigned To: mrook -Roadmap Versions: +Roadmap Versions: 1.3.11
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.