Skip to content

Commit 72c6a65

Browse files
committed
fix mysqli_query
1 parent d52a02e commit 72c6a65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extension/xhprof.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -830,13 +830,13 @@ static char *hp_get_function_argument_summary(char *ret, zend_execute_data *data
830830

831831
if (strcmp(ret, "PDO::exec") == 0 ||
832832
strcmp(ret, "PDO::query") == 0 ||
833-
strcmp(ret, "mysqli_query") == 0 ||
834833
strcmp(ret, "mysqli::query") == 0) {
835-
836834
zval *arg;
837835
arg = ZEND_CALL_ARG(data, 1);
838836
spprintf(&result, 0, "%s#%s", ret, Z_STRVAL_P(arg));
839-
837+
} else if (strcmp(ret, "mysqli_query") == 0) {
838+
zval *arg = ZEND_CALL_ARG(data, 2);
839+
spprintf(&result, 0, "%s#%s", ret, Z_STRVAL_P(arg));
840840
} else if (strcmp(ret, "PDOStatement::execute") == 0) {
841841
zval *object = (data->This.value.obj) ? &(data->This) : NULL;
842842

0 commit comments

Comments
 (0)