get function argument in php extension -
i new php extension writing , working on php extension capture called functions , arguments. able function name using following piece of code
static void get_function_details(zend_execute_data *data, zend_op_array *op_array tsrmls_dc) { fprintf(fp,data->function_state.function->common.function_name); }
however having difficulty in getting argument details.
i tried following piece did not work
char ** args; char * first_arg; args = (char**)data->function_state.arguments; first_arg = *args; fprintf(fp,first_arg);
can please give me sample code function arguments.
Comments
Post a Comment