Skip to content

Commit

Permalink
fix(agent): unneeded var
Browse files Browse the repository at this point in the history
  • Loading branch information
zsistla committed Feb 5, 2025
1 parent e27a78e commit 23a8a34
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions agent/lib_php_amqplib.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,14 @@
* Returns : None
*/
static void nr_php_amqplib_ensure_class() {
zval retval_zpd;
int result = FAILURE;

result = zend_eval_string("class_exists('PhpAmqpLib\\Channel\\AMQPChannel');",
&retval_zpd, "Get nr_php_amqplib_class_exists");
NULL, "Get nr_php_amqplib_class_exists");
/*
* We don't need to check anything else at this point. If this fails, there's
* nothing else we can do anyway.
*/

zval_dtor(&retval_zpd);
}

/*
Expand Down

0 comments on commit 23a8a34

Please sign in to comment.