Skip to content

Commit f89a63d

Browse files
committed
fix(agent): Fixes Doctrine 2.18+ detection
Addresses changes in Doctrine 2.18+ (but not 3.x) that affected detection.
1 parent bc0766b commit f89a63d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

agent/php_execute.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,11 @@ typedef struct _nr_library_table_t {
484484
*/
485485
// clang-format: off
486486
static nr_library_table_t libraries[] = {
487+
/* Doctrine < 2.18 */
487488
{"Doctrine 2", NR_PSTR("doctrine/orm/query.php"), nr_doctrine2_enable},
489+
/* Doctrine 2.18 reworked the directory structure */
490+
{"Doctrine 2", NR_PSTR("doctrine/orm/src/query.php"), nr_doctrine2_enable},
491+
488492
{"Guzzle 3", NR_PSTR("guzzle/http/client.php"), nr_guzzle3_enable},
489493
{"Guzzle 4-5", NR_PSTR("hasemitterinterface.php"), nr_guzzle4_enable},
490494
{"Guzzle 6", NR_PSTR("guzzle/src/functions_include.php"), nr_guzzle6_enable},

0 commit comments

Comments
 (0)