mirror of
https://github.com/php/php-src.git
synced 2024-10-01 06:46:08 +00:00
2fa568b7b0
i.e. require a clean slate - a non-existent file or a valid phar archive - to muck around with phar contents add the first tar-based phar test
9 lines
164 B
PHP
9 lines
164 B
PHP
<?php
|
|
include dirname(__FILE__) . '/tarmaker.php.inc';
|
|
class corrupter extends tarmaker {
|
|
function close()
|
|
{
|
|
fwrite($this->tmp, 'oopsie');
|
|
fclose($this->tmp);
|
|
}
|
|
} |