mirror of
https://github.com/php/php-src.git
synced 2024-10-03 15:56:11 +00:00
b93b48663d
fix a whole bunch of zip-related bugs tar tests need some naming add phar information to error messages, fix existing tests to reflect this
12 lines
219 B
PHP
12 lines
219 B
PHP
<?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);
|
|
}
|
|
} |