php-src/ext/phar/tests/zip/make_invalid_tar.php.inc

12 lines
219 B
PHP
Raw Normal View History

<?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);
}
}