We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 268c28b commit 73b47b2Copy full SHA for 73b47b2
agent/lib_php_amqplib.c
@@ -91,8 +91,12 @@
91
static void nr_php_amqplib_ensure_class() {
92
int result = FAILURE;
93
94
- result = zend_eval_string("class_exists('PhpAmqpLib\\Channel\\AMQPChannel');",
95
- NULL, "Get nr_php_amqplib_class_exists");
+ class_entry = nr_php_find_class("phpamqplib\\channel\\amqpchannel");
+ if (NULL == class_entry) {
96
+ result
97
+ = zend_eval_string("class_exists('PhpAmqpLib\\Channel\\AMQPChannel');",
98
+ NULL, "Get nr_php_amqplib_class_exists");
99
+ }
100
/*
101
* We don't need to check anything else at this point. If this fails, there's
102
* nothing else we can do anyway.
0 commit comments