Skip to content

Commit

Permalink
try same format for all PHP verisons
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdruid committed Nov 24, 2024
1 parent 33e5a4e commit 87e03d0
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions Archive/Tar.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,17 +238,9 @@ public function __construct($p_tarname, $p_compress = null, $buffer_length = 512
}
}


if (version_compare(PHP_VERSION, "5.5.0-dev") < 0) {
$this->_fmt = "a100filename/a8mode/a8uid/a8gid/a12size/a12mtime/" .
"a8checksum/a1typeflag/a100link/a6magic/a2version/" .
"a32uname/a32gname/a8devmajor/a8devminor/a131prefix";
} else {
$this->_fmt = "Z100filename/Z8mode/Z8uid/Z8gid/a12size/Z12mtime/" .
"Z8checksum/Z1typeflag/Z100link/Z6magic/Z2version/" .
"Z32uname/Z32gname/Z8devmajor/Z8devminor/Z131prefix";
}

$this->_fmt = "Z100filename/Z8mode/Z8uid/Z8gid/a12size/Z12mtime/" .
"Z8checksum/Z1typeflag/Z100link/Z6magic/Z2version/" .
"Z32uname/Z32gname/Z8devmajor/Z8devminor/Z131prefix";

$this->buffer_length = $buffer_length;
}
Expand Down

0 comments on commit 87e03d0

Please sign in to comment.