Skip to content

Commit

Permalink
add PDO::query recording
Browse files Browse the repository at this point in the history
  • Loading branch information
longxinH authored and longxinH committed Oct 23, 2016
1 parent 441bc8a commit 1bb5d69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extension/xhprof.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,9 @@ static char *hp_get_function_argument_summary(char *ret, zend_execute_data *data
strcmp(ret, "mysqli_query") == 0 ||
strcmp(ret, "mysqli::query") == 0) {

spprintf(&result, 0, "%s", ret);
zval *arg;
arg = ZEND_CALL_ARG(data, 1);
spprintf(&result, 0, "%s#%s", ret, Z_STRVAL_P(arg));

} else if (strcmp(ret, "PDOStatement::execute") == 0) {
zval *object = (data->This.value.obj) ? &(data->This) : NULL;
Expand Down

0 comments on commit 1bb5d69

Please sign in to comment.