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

Bug #20275 "pax_global_header" looks like a regular file
Submitted: 2014-05-19 21:49 UTC
From: wapmorgan Assigned: mrook
Status: Closed Package: Archive_Tar (version 1.3.11)
PHP Version: 5.5.3 OS: ubuntu 13.10
Roadmaps: 1.3.12    
Subscription  
Comments Add Comment Add patch


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 : 29 - 29 = ?

 
 [2014-05-19 21:49 UTC] wapmorgan (Sergei IvIvI)
Description: ------------ I tried open archive (attached below) and get list of content. File "pax_global_header" appeared in the output, but that's wrong behavior because > Add pax_global_header to Documentation/dontdiff > Kernel tar-archives created by git contain an extended header with the git > commit ID that was used to generate the tar-tree. If your tar is older > than 1.14 then this extended header will be extracted as a regular file > called pax_global_header. Patches should never be generated against this > file, so it should be listed in dontdiff. ( from http://marc.info/?l=linux- kernel&m=111909182607985&w=2 ) Test script: --------------- $tar = new \Archive_Tar($filename, 'gz'); var_dump($tar->listContent()); Expected result: ---------------- array(7) { [0] => array(9) { 'checksum' => int(7198) 'filename' => string(25) "UltimateExtractor-master/" 'mode' => int(509) 'uid' => int(0) 'gid' => int(0) 'size' => int(0) 'mtime' => int(1399831408) 'typeflag' => string(1) "5" 'link' => string(0) "" } [1] => array(9) { 'checksum' => int(9099) 'filename' => string(44) "UltimateExtractor-master/AbstractArchive.php" 'mode' => int(436) 'uid' => int(0) 'gid' => int(0) 'size' => int(394) 'mtime' => int(1399831408) 'typeflag' => string(1) "0" 'link' => string(0) "" } [2] => array(9) { 'checksum' => int(8580) 'filename' => string(39) "UltimateExtractor-master/RarArchive.php" 'mode' => int(436) 'uid' => int(0) 'gid' => int(0) 'size' => int(4798) 'mtime' => int(1399831408) 'typeflag' => string(1) "0" 'link' => string(0) "" } [3] => array(9) { 'checksum' => int(9374) 'filename' => string(46) "UltimateExtractor-master/UltimateExtractor.php" 'mode' => int(436) 'uid' => int(0) 'gid' => int(0) 'size' => int(493) 'mtime' => int(1399831408) 'typeflag' => string(1) "0" 'link' => string(0) "" } [4] => array(9) { 'checksum' => int(8588) 'filename' => string(39) "UltimateExtractor-master/ZipArchive.php" 'mode' => int(436) 'uid' => int(0) 'gid' => int(0) 'size' => int(4323) 'mtime' => int(1399831408) 'typeflag' => string(1) "0" 'link' => string(0) "" } [5] => array(9) { 'checksum' => int(8562) 'filename' => string(38) "UltimateExtractor-master/composer.json" 'mode' => int(436) 'uid' => int(0) 'gid' => int(0) 'size' => int(159) 'mtime' => int(1399831408) 'typeflag' => string(1) "0" 'link' => string(0) "" } [6] => array(9) { 'checksum' => int(8033) 'filename' => string(33) "UltimateExtractor-master/test.php" 'mode' => int(436) 'uid' => int(0) 'gid' => int(0) 'size' => int(959) 'mtime' => int(1399831408) 'typeflag' => string(1) "0" 'link' => string(0) "" } } Actual result: -------------- array(8) { [0] => array(9) { 'checksum' => int(6481) 'filename' => string(17) "pax_global_header" 'mode' => int(438) 'uid' => int(0) 'gid' => int(0) 'size' => int(52) 'mtime' => int(1399831408) 'typeflag' => string(1) "g" 'link' => string(0) "" } [1] => array(9) { 'checksum' => int(7198) 'filename' => string(25) "UltimateExtractor-master/" 'mode' => int(509) 'uid' => int(0) 'gid' => int(0) 'size' => int(0) 'mtime' => int(1399831408) 'typeflag' => string(1) "5" 'link' => string(0) "" } [2] => array(9) { 'checksum' => int(9099) 'filename' => string(44) "UltimateExtractor-master/AbstractArchive.php" 'mode' => int(436) 'uid' => int(0) 'gid' => int(0) 'size' => int(394) 'mtime' => int(1399831408) 'typeflag' => string(1) "0" 'link' => string(0) "" } [3] => array(9) { 'checksum' => int(8580) 'filename' => string(39) "UltimateExtractor-master/RarArchive.php" 'mode' => int(436) 'uid' => int(0) 'gid' => int(0) 'size' => int(4798) 'mtime' => int(1399831408) 'typeflag' => string(1) "0" 'link' => string(0) "" } [4] => array(9) { 'checksum' => int(9374) 'filename' => string(46) "UltimateExtractor-master/UltimateExtractor.php" 'mode' => int(436) 'uid' => int(0) 'gid' => int(0) 'size' => int(493) 'mtime' => int(1399831408) 'typeflag' => string(1) "0" 'link' => string(0) "" } [5] => array(9) { 'checksum' => int(8588) 'filename' => string(39) "UltimateExtractor-master/ZipArchive.php" 'mode' => int(436) 'uid' => int(0) 'gid' => int(0) 'size' => int(4323) 'mtime' => int(1399831408) 'typeflag' => string(1) "0" 'link' => string(0) "" } [6] => array(9) { 'checksum' => int(8562) 'filename' => string(38) "UltimateExtractor-master/composer.json" 'mode' => int(436) 'uid' => int(0) 'gid' => int(0) 'size' => int(159) 'mtime' => int(1399831408) 'typeflag' => string(1) "0" 'link' => string(0) "" } [7] => array(9) { 'checksum' => int(8033) 'filename' => string(33) "UltimateExtractor-master/test.php" 'mode' => int(436) 'uid' => int(0) 'gid' => int(0) 'size' => int(959) 'mtime' => int(1399831408) 'typeflag' => string(1) "0" 'link' => string(0) "" } }

Comments

 [2014-05-30 18:31 UTC] mrook (Michiel Rook)
-Status: Open +Status: Closed -Assigned To: +Assigned To: mrook -Roadmap Versions: +Roadmap Versions: 1.3.12
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.