- stream_get_contents: documentation ( source)
- fseek: documentation ( source)
- fopen: documentation ( source)
<?php
function runNext()
{
$handle = fopen(__FILE__, 'r');
fseek($handle, __COMPILER_HALT_OFFSET__);
return eval('?><?php ' . stream_get_contents($handle));
}
runNext();
__halt_compiler();
var_dump('hello');
runNext();
__halt_compiler();
var_dump('world');
This script was stopped while abusing our resources