zval **function_name; zval *retval;
if((ZEND_NUM_ARGS() != 1) || (zend_get_parameters_ex(1, &function_name) != SUCCESS)) { WRONG_PARAM_COUNT; }
if((*function_name)->type != IS_STRING) { zend_error(E_ERROR, "Function requires string argument"); }
TSRMSLS_FETCH();
if(call_user_function_ex(CG(function_table), NULL, *function_name, &retval, 0, NULL, 0) != SUCCESS) { zend_error(E_ERROR, "Function call failed"); }
zend_printf("Nous avons %i de type<br>", retval->type);
*return_value = *retval; zval_copy_ctor(return_value); zval_ptr_dtor(&retval);
|