Skip to content

Commit c6f59c8

Browse files
committed
chore(agent): change variable name
1 parent 6ecae1a commit c6f59c8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

agent/fw_cakephp.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ NR_PHP_WRAPPER(nr_cakephp_name_the_wt_4) {
153153
int clen = 0;
154154
int alen = 0;
155155
char* name = 0;
156-
zval* params = NULL;
156+
zval* action_zval = NULL;
157157
zval* request = NULL;
158158
zval action_param;
159159

@@ -200,15 +200,15 @@ NR_PHP_WRAPPER(nr_cakephp_name_the_wt_4) {
200200
}
201201

202202
nr_php_zval_str(&action_param, "action");
203-
params = nr_php_call(request, "getParam", &action_param);
203+
action_zval = nr_php_call(request, "getParam", &action_param);
204204
zval_dtor(&action_param);
205-
if (!nr_php_is_zval_valid_string(params)) {
205+
if (!nr_php_is_zval_valid_string(action_zval)) {
206206
nrl_verbosedebug(NRL_FRAMEWORK, "CakePHP: no action param found in request");
207207
goto end;
208208
} else {
209-
alen = Z_STRLEN_P(params);
209+
alen = Z_STRLEN_P(action_zval);
210210
action = (char*)nr_alloca(alen + 1);
211-
nr_strxcpy(action, Z_STRVAL_P(params), alen);
211+
nr_strxcpy(action, Z_STRVAL_P(action_zval), alen);
212212
}
213213

214214
if ((0 == clen) && (0 == alen)) {
@@ -236,7 +236,7 @@ NR_PHP_WRAPPER(nr_cakephp_name_the_wt_4) {
236236
end:
237237
nr_php_scope_release(&this_var);
238238
nr_php_zval_free(&request);
239-
nr_php_zval_free(&params);
239+
nr_php_zval_free(&action_zval);
240240
}
241241
NR_PHP_WRAPPER_END
242242

0 commit comments

Comments
 (0)