function post_exec_function() { // makes the variables available in the current scope // because compact() only looks for a variable based on its name in the current symbol table // note that setting the variables in pre_exec_function() with the help of $GLOBALS // would have not effect when exec_function() would process compact()
if (! $this->returned_params = $this->get_variables() or ! extract($this->returned_params)) { // no variables are set return; }
if ($varnames = $this->get_var_names()) { // one or more variable names are passed, compacts the variables $this->result['array'] = call_user_func_array('compact', $varnames); } } }