File tree 1 file changed +0
-24
lines changed
1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change 81
81
* needed to work with MQ_BROKER.
82
82
*/
83
83
84
- /*
85
- * Purpose : Ensures the php-amqplib instrumentation gets wrapped.
86
- *
87
- * Params : None
88
- *
89
- * Returns : None
90
- */
91
- static void nr_php_amqplib_ensure_class () {
92
- int result = FAILURE ;
93
- zend_class_entry * class_entry = NULL ;
94
-
95
- class_entry = nr_php_find_class ("phpamqplib\\channel\\amqpchannel" );
96
- if (NULL == class_entry ) {
97
- result = zend_eval_stringl (
98
- NR_PSTR ("class_exists('PhpAmqpLib\\Channel\\AMQPChannel');" ), NULL ,
99
- "nr_php_amqplib_class_exists_channel_amqpchannel" );
100
- }
101
- /*
102
- * We don't need to check anything else at this point. If this fails, there's
103
- * nothing else we can do anyway.
104
- */
105
- }
106
-
107
84
/*
108
85
* Version information will be pulled from PhpAmqpLib\\Package::VERSION
109
86
* nr_php_amqplib_handle_version will automatically load the class if it isn't
@@ -810,7 +787,6 @@ void nr_php_amqplib_enable() {
810
787
811
788
/* Extract the version */
812
789
nr_php_amqplib_handle_version ();
813
- nr_php_amqplib_ensure_class ();
814
790
815
791
#if ZEND_MODULE_API_NO >= ZEND_8_0_X_API_NO /* less than PHP8.0 */
816
792
nr_php_wrap_user_function_before_after_clean (
You can’t perform that action at this time.
0 commit comments