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

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

c# - MSDN OneNote Api: Navigate to never before opened page without opening a OneNote Application Window -