php-src/ext/phar/tests/tar/make_invalid_tar.php.inc
Greg Beaver 2fa568b7b0 do not attempt to create a new phar if a file exists and is corrupted or is not a phar archive,
i.e. require a clean slate - a non-existent file or a valid phar archive - to muck around with phar contents
add the first tar-based phar test
2008-01-05 22:46:54 +00:00

9 lines
164 B
PHP

<?php
include dirname(__FILE__) . '/tarmaker.php.inc';
class corrupter extends tarmaker {
function close()
{
fwrite($this->tmp, 'oopsie');
fclose($this->tmp);
}
}