Back to index

php5  5.3.10
make_invalid_tar.php.inc
Go to the documentation of this file.
00001 <?php
00002 include dirname(__FILE__) . '/tarmaker.php.inc';
00003 class corrupter extends tarmaker {
00004 function close()
00005 {
00006        parent::close();
00007        $fp = fopen($this->path, 'r+b');
00008        fseek($fp, 20);
00009        fwrite($fp, 'oopsie');
00010        fclose($fp);
00011 }
00012 }