summaryrefslogtreecommitdiff
path: root/ext/phar/tests/zip/files/make_invalid_tar.php.inc
blob: cec8ef77939f0c545ccb5bb2ce2f3a92cb5c5c72 (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);
}
}