Skip to content

Commit 54f720d

Browse files
committed
style(agent): rename eval_string last param
1 parent 73b47b2 commit 54f720d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

agent/lib_php_amqplib.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,13 @@
9090
*/
9191
static void nr_php_amqplib_ensure_class() {
9292
int result = FAILURE;
93+
zend_class_entry* class_entry = NULL;
9394

9495
class_entry = nr_php_find_class("phpamqplib\\channel\\amqpchannel");
9596
if (NULL == class_entry) {
96-
result
97-
= zend_eval_string("class_exists('PhpAmqpLib\\Channel\\AMQPChannel');",
98-
NULL, "Get nr_php_amqplib_class_exists");
97+
result = zend_eval_string(
98+
"class_exists('PhpAmqpLib\\Channel\\AMQPChannel');", NULL,
99+
"nr_php_amqplib_class_exists_channel_amqpchannel");
99100
}
100101
/*
101102
* We don't need to check anything else at this point. If this fails, there's
@@ -127,7 +128,7 @@ void nr_php_amqplib_handle_version() {
127128
" }"
128129
" return $nr_php_amqplib_version;"
129130
"})();",
130-
&retval_zpd, "Get nr_php_amqplib_version");
131+
&retval_zpd, "nr_php_amqplib_get_phpamqplib_package_version");
131132

132133
/* See if we got a non-empty/non-null string for version. */
133134
if (SUCCESS == result) {
@@ -305,7 +306,7 @@ static inline void nr_php_amqplib_insert_dt_headers(zval* amqp_msg) {
305306
" return null;"
306307
" }"
307308
"})();",
308-
&amqp_table_retval_zpd, "newrelic.amqplib.add_empty_headers");
309+
&amqp_table_retval_zpd, "nr_php_amqplib_create_empty_amqptable");
309310

310311
if (FAILURE == retval) {
311312
nrl_verbosedebug(NRL_INSTRUMENT,

0 commit comments

Comments
 (0)