Test: /ext/phar/tests/bug53872.phpt - Version 5.4.0beta1-dev        

Bug #53872 internal corruption of phar
Submitted: 2011-01-28 22:17:43 Modified: 2011-08-29 16:05:48
From: bugzilla33 Assigned: bjori
Status: Closed Package: PHAR related
PHP Version: 5.3.5 OS: Windows 7 32-bit

There are 2 different diffs reported by users for this test.

Count Diff
25 (96%)
001+ Fatal error: Uncaught exception 'BadMethodCallException' with message 'Cannot compress files within archive with gzip, enable ext/zlib in php.ini' in %s/bug53872.php:5
002+ Stack trace:
001- content of first.txt
002- content of third.txt
003+ #0 %s/bug53872.php(5): Phar->compressFiles(4096)
004+ #1 {main}
005+ thrown in %s/bug53872.php on line 5
1 (4%)
002+
003+ Warning: file_get_contents(phar://bug53872-phar.phar/second.txt): failed to open stream: phar error: internal corruption of phar "/opt/svn/php-src/branches/PHP_5_4/bug53872-phar.phar" (actual filesize mismatch on file "second.txt") in %s/bug53872.php on line 8