FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=20275&edit=1

  ID: 20275
  Updated by: mrook@php.net
  Reported By: wapmorgan@gmail.com
  Summary: "pax_global_header" looks like a regular file
-Status: Open
+Status: Closed
  Type: Bug
  Package: Archive_Tar
  Operating System: ubuntu 13.10
  Package Version: 1.3.11
  PHP Version: 5.5.3
-Assigned To:
+Assigned To: mrook
-Roadmap Versions:
+Roadmap Versions: 1.3.12
  New Comment:

-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.




Previous Comments:
------------------------------------------------------------------------

[2014-05-19 17:49:26] wapmorgan

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) ""
   }
}

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMay 30, '14 at 12:17p
activeMay 30, '14 at 12:17p
posts1
users1
websitepear.php.net

1 user in discussion

Mrook: 1 post

People

Translate

site design / logo © 2022 Grokbase