Skip to content

Commit b5c7def

Browse files
committed
style(agent): Comment update
1 parent 4aa2522 commit b5c7def

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

agent/lib_php_amqplib.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,11 @@ static void nr_php_amqplib_ensure_class() {
9494
* Version detection will be called pulled from PhpAmqpLib\\Package::VERSION
9595
* nr_php_amqplib_handle_version will automatically load the class if it isn't
9696
* 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.
100102
*/
101103
void nr_php_amqplib_handle_version() {
102104
char* version = NULL;

0 commit comments

Comments
 (0)