php-src/ext/phar/tests/zip/make_invalid_tar.php.inc
Greg Beaver b93b48663d complete set of new tests for zip-based phars (need to test compression for zip-based phars)
fix a whole bunch of zip-related bugs
tar tests need some naming
add phar information to error messages, fix existing tests to reflect this
2008-01-08 07:08:46 +00:00

12 lines
219 B
PHP

<?php
include dirname(__FILE__) . '/tarmaker.php.inc';
class corrupter extends tarmaker {
function close()
{
parent::close();
$fp = fopen($this->path, 'r+b');
fseek($fp, 20);
fwrite($fp, 'oopsie');
fclose($fp);
}
}