From 87e03d0e9a012d406bfa1ecfce64236142f2cffa Mon Sep 17 00:00:00 2001 From: mcdruid Date: Sun, 24 Nov 2024 20:07:28 +0000 Subject: [PATCH] try same format for all PHP verisons --- Archive/Tar.php | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/Archive/Tar.php b/Archive/Tar.php index bb50ea1..9361aa3 100644 --- a/Archive/Tar.php +++ b/Archive/Tar.php @@ -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; }