class Aori
{
private $finished = false;
function stream_open($path, $mode, $options, &$opened_path) {
return true;
}
function stream_read(int $count) {
if ($this->finished) {
return false;
}
$this->finished = true;
return 'うるせーバーカ';
}
function stream_eof() {
return $this->finished;
}
function stream_stat() {
return [];
}
}
stream_wrapper_unregister('file');
stream_wrapper_register('file', 'Aori');