public $synopsis = 'mixed current ( array &$array )';
function post_exec_function()
{
// this fix is necessary because current() does not return the proper value when processed through the default (parent) post_exec_function()
$function = $this->_synopsis->function_name;
$result[$this->_synopsis->return_var] = $function($this->returned_params['array']);
$this->result = $result;
if ($this->errors) {
// there are errors, removes the last error that would be a duplicate of the previous one,
// eg "current() expects parameter 1 to be array, null given"
$this->errors = array_slice($this->errors, 0, -1);
}
}