Skip to content

Commit

Permalink
style(agent): Comment update
Browse files Browse the repository at this point in the history
  • Loading branch information
zsistla committed Feb 5, 2025
1 parent 4aa2522 commit b5c7def
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions agent/lib_php_amqplib.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,11 @@ static void nr_php_amqplib_ensure_class() {
* Version detection will be called pulled from PhpAmqpLib\\Package::VERSION
* nr_php_amqplib_handle_version will automatically load the class if it isn't
* loaded yet and then evaluate the string. To avoid the VERY unlikely but not
* impossible fatal error if the file/class isn't loaded yet, we need to wrap
* the call in a try/catch block and make it a lambda so that we avoid fatal
* errors.
* impossible fatal error if the file/class doesn't exist, we need to wrap
* the call in a try/catch block and make it a lambda so that we avoid errors.
* This won't load the file if it doesn't exist, but by the time this is called,
* the existence of the php-amqplib is a known quantity so calling the following
* lambda will result in the PhpAmqpLib\\Package class being loaded.
*/
void nr_php_amqplib_handle_version() {
char* version = NULL;
Expand Down

0 comments on commit b5c7def

Please sign in to comment.