File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -94,9 +94,11 @@ static void nr_php_amqplib_ensure_class() {
94
94
* Version detection will be called pulled from PhpAmqpLib\\Package::VERSION
95
95
* nr_php_amqplib_handle_version will automatically load the class if it isn't
96
96
* loaded yet and then evaluate the string. To avoid the VERY unlikely but not
97
- * impossible fatal error if the file/class isn't loaded yet, we need to wrap
98
- * the call in a try/catch block and make it a lambda so that we avoid fatal
99
- * errors.
97
+ * impossible fatal error if the file/class doesn't exist, we need to wrap
98
+ * the call in a try/catch block and make it a lambda so that we avoid errors.
99
+ * This won't load the file if it doesn't exist, but by the time this is called,
100
+ * the existence of the php-amqplib is a known quantity so calling the following
101
+ * lambda will result in the PhpAmqpLib\\Package class being loaded.
100
102
*/
101
103
void nr_php_amqplib_handle_version () {
102
104
char * version = NULL ;
You can’t perform that action at this time.
0 commit comments