mongodb / mongo-php-library

The Official MongoDB PHP library

Home Page:https://mongodb.com/docs/php-library/current/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extract mongodb-1.6.2.tgz error

jingjingxyk opened this issue · comments

Bug Report

curl  --connect-timeout 15 --retry 5  --retry-delay 5  -Lo '/work/pool/ext/mongodb-1.6.2.tgz' 'https://pecl.php.net/get/mongodb-1.6.2.tgz' 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    34  100    34    0     0     29      0  0:00:01  0:00:01 --:--:--    29

tar --strip-components=1 -C /work/ext/mongodb -xf /work/pool/ext/mongodb-1.6.2.tgz
tar: This does not look like a tar archive

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Environment

alpine 3.17 mongodb-1.6.2.tgz

Test Script

curl  --connect-timeout 15 --retry 5  --retry-delay 5  -Lo '/work/pool/ext/mongodb-1.6.2.tgz' 'https://pecl.php.net/get/mongodb-1.6.2.tgz'

tar --strip-components=1 -C /work/ext/mongodb -xf /work/pool/ext/mongodb-1.6.2.tgz

Expected and Actual Behavior

use mongodb-1.6.1.tgz no error

curl  --connect-timeout 15 --retry 5  --retry-delay 5  -Lo '/work/pool/ext/mongodb-1.6.1.tgz' 'https://pecl.php.net/get/mongodb-1.6.1.tgz' 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1068k  100 1068k    0     0   428k      0  0:00:02  0:00:02 --:--:--  428k

tar --strip-components=1 -C /work/ext/mongodb -xf /work/pool/ext/mongodb-1.6.1.tgz

Debug Log