Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
set start time at end of minit
  • Loading branch information
bduranleau-nr committed Apr 2, 2025
commit 01e62cf68ff8b78d6ac66b077943e450d1e2acf3
5 changes: 5 additions & 0 deletions agent/php_minit.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "nr_app.h"
#include "nr_banner.h"
#include "nr_daemon_spawn.h"
#include "util_health.h"
#include "util_logging.h"
#include "util_memory.h"
#include "util_signals.h"
Expand Down Expand Up @@ -740,6 +741,10 @@ PHP_MINIT_FUNCTION(newrelic) {
nr_wordpress_minit();
nr_php_set_opcode_handlers();

if (NR_PHP_PROCESS_GLOBALS(agent_control_enabled)) {
nrh_set_start_time();
}

nrl_debug(NRL_INIT, "MINIT processing done");
#if ZEND_MODULE_API_NO >= ZEND_8_0_X_API_NO /* PHP 7.4+ */
NR_PHP_PROCESS_GLOBALS(zend_offset) = zend_get_resource_handle(dummy);
Expand Down