public $source_code = ' // loads some data in a temp file $_filename = tempnam(sys_get_temp_dir(), "pbe"); file_put_contents($_filename, "Hello world !");
// opens the file or url $_mode = $mode; // string $mode $_handle = fopen( $filename, // string $filename "$mode");
inject_function_call
// removes the temp file fclose($_handle); unlink($_filename); ';
public $synopsis = 'string fread ( resource $handle , int $length )';
public $test_not_to_run = [1, 2];
function post_exec_function() { fclose($this->returned_params['handle']); }
if ($this->_function_params->get_param('length')) { $this->_filter->filter_file_length('length', $filename); } // else: the length is empty which is caught by the function itself } }