summaryrefslogtreecommitdiff
path: root/ext/phar/tests/zip/files/make_invalid_tar.php.inc
blob: 4f4758bbb64372e61b5ed38895b5b8d70e8340be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<?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);
}
}