Skip to content

Commit

Permalink
fix mysqli_query
Browse files Browse the repository at this point in the history
  • Loading branch information
longxinH committed Aug 8, 2017
1 parent d52a02e commit 72c6a65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extension/xhprof.c
Original file line number Diff line number Diff line change
Expand Up @@ -830,13 +830,13 @@ static char *hp_get_function_argument_summary(char *ret, zend_execute_data *data

if (strcmp(ret, "PDO::exec") == 0 ||
strcmp(ret, "PDO::query") == 0 ||
strcmp(ret, "mysqli_query") == 0 ||
strcmp(ret, "mysqli::query") == 0) {

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

} else if (strcmp(ret, "mysqli_query") == 0) {
zval *arg = ZEND_CALL_ARG(data, 2);
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 72c6a65

Please sign in to comment.