1--TEST-- 2Bug #76584 (PharFileInfo::decompress not working) 3--EXTENSIONS-- 4phar 5zlib 6--INI-- 7phar.readonly=0 8--FILE-- 9<?php 10$phar = new Phar(__DIR__ . '/76584.phar'); 11$phar->addFromString('76584.txt', 'This is a test file.'); 12$file = $phar['76584.txt']; 13var_dump($file->compress(Phar::GZ)); 14var_dump($file->isCompressed()); 15var_dump($file->decompress()); 16var_dump($file->isCompressed()); 17mkdir(__DIR__ . '/76584'); 18var_dump($phar->extractTo(__DIR__ . '/76584')); 19echo file_get_contents(__DIR__ . '/76584/76584.txt'); 20?> 21--EXPECT-- 22bool(true) 23bool(true) 24bool(true) 25bool(false) 26bool(true) 27This is a test file. 28--CLEAN-- 29<?php 30unlink(__DIR__ . '/76584/76584.txt'); 31rmdir(__DIR__ . '/76584'); 32unlink(__DIR__ . '/76584.phar'); 33?> 34