Skip to content

Commit

Permalink
fix use of op_array extension on PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
lavarou committed Jan 31, 2025
1 parent acdebfe commit 46d137f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions agent/php_minit.c
Original file line number Diff line number Diff line change
Expand Up @@ -725,11 +725,7 @@ PHP_MINIT_FUNCTION(newrelic) {
nrl_debug(NRL_INIT, "MINIT processing done");
#if ZEND_MODULE_API_NO >= ZEND_8_0_X_API_NO /* PHP 8.0+ */
NR_PHP_PROCESS_GLOBALS(zend_offset) = zend_get_resource_handle(dummy);
#if ZEND_MODULE_API_NO >= ZEND_8_4_X_API_NO /* PHP 8.4+ */
NR_PHP_PROCESS_GLOBALS(op_array_extension_handle) = zend_get_internal_function_extension_handle("newrelic");
#else
NR_PHP_PROCESS_GLOBALS(op_array_extension_handle) = zend_get_op_array_extension_handle("newrelic");
#endif
#else
NR_PHP_PROCESS_GLOBALS(zend_offset) = zend_get_resource_handle(&dummy);
#endif
Expand Down

0 comments on commit 46d137f

Please sign in to comment.