Opened 7 years ago

Closed 7 years ago

#3150 closed defect (bug) (invalid)

PharData fails to extract latest.tar.gz on Ubuntu 14.04

Reported by: danielbachhuber's profile danielbachhuber Owned by:
Milestone: Priority: normal
Component: General Keywords:


Steps to reproduce on Ubuntu 14.04:

php -r "new PharData( 'latest.tar.gz' );"


php -r "new PharData( 'latest.tar.gz' );"
PHP Fatal error:  Uncaught UnexpectedValueException: unable to decompress gzipped phar archive "/tmp/latest.tar.gz" to temporary file in Command line code:1
Stack trace:
#0 Command line code(1): PharData->__construct('latest.tar.gz')
#1 {main}
  thrown in Command line code on line 1

This problem is only reproducible with latest.tar.gz. Earlier .tar.gz WordPress builds do not exhibit this problem, nor does it reproduce on MacOS.

See discussion in

Change History (1)

#1 @dd32
7 years ago

  • Resolution set to invalid
  • Status changed from new to closed

The discussion in has sourced the bug down to a Debian PHP patch being applied which trips up zlib under specific circumstances (certain compressed filesizes).

Unfortunately that means that the archive isn't at fault, and recompressing it should theoretically result in the exact same file (unless we changed something, which we're not going to do).

The latest WP-CLI works around this by using CLI commands when PHP's zlib fails.
I'm marking this as invalid.

Note: See TracTickets for help on using tickets.