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