@@ -66,8 +66,7 @@ NR_PHP_WRAPPER(nr_drupal_exception) {
66
66
67
67
if (NR_SUCCESS
68
68
!= nr_php_error_record_exception (NRPRG (txn ), exception , priority , true,
69
- NULL ,
70
- & NRPRG (exception_filters ))) {
69
+ NULL , & NRPRG (exception_filters ))) {
71
70
nrl_verbosedebug (NRL_TXN , "Drupal: unable to record exception" );
72
71
}
73
72
@@ -134,12 +133,12 @@ static void nr_drupal8_add_method_callback(const zend_class_entry* ce,
134
133
#if ZEND_MODULE_API_NO >= ZEND_8_0_X_API_NO \
135
134
&& !defined OVERWRITE_ZEND_EXECUTE_DATA
136
135
static void nr_drupal8_add_method_callback_before_after_clean (
137
- const zend_class_entry * ce ,
138
- const char * method ,
139
- size_t method_len ,
140
- nrspecialfn_t before_callback ,
141
- nrspecialfn_t after_callback ,
142
- nrspecialfn_t clean_callback ) {
136
+ const zend_class_entry * ce ,
137
+ const char * method ,
138
+ size_t method_len ,
139
+ nrspecialfn_t before_callback ,
140
+ nrspecialfn_t after_callback ,
141
+ nrspecialfn_t clean_callback ) {
143
142
zend_function * function = NULL ;
144
143
145
144
if (NULL == ce ) {
@@ -164,13 +163,13 @@ static void nr_drupal8_add_method_callback_before_after_clean(
164
163
nr_php_class_entry_name (ce ), NRSAFELEN (method_len ), method );
165
164
166
165
nr_php_wrap_user_function_before_after_clean (
167
- class_method , nr_strlen (class_method ),
168
- before_callback , after_callback , clean_callback );
166
+ class_method , nr_strlen (class_method ), before_callback , after_callback ,
167
+ clean_callback );
169
168
170
169
nr_free (class_method );
171
170
}
172
171
}
173
- #endif // OAPI
172
+ #endif // OAPI
174
173
175
174
/*
176
175
* Purpose : Check if the given function or method is in the current call
@@ -501,8 +500,7 @@ NR_PHP_WRAPPER(nr_drupal94_invoke_all_with_callback) {
501
500
502
501
#if ZEND_MODULE_API_NO >= ZEND_8_0_X_API_NO \
503
502
&& !defined OVERWRITE_ZEND_EXECUTE_DATA
504
- zval * curr_hook
505
- = (zval * )nr_stack_get_top (& NRPRG (drupal_invoke_all_hooks ));
503
+ zval * curr_hook = (zval * )nr_stack_get_top (& NRPRG (drupal_invoke_all_hooks ));
506
504
if (UNEXPECTED (!nr_php_is_zval_non_empty_string (curr_hook ))) {
507
505
nrl_verbosedebug (NRL_FRAMEWORK ,
508
506
"%s: cannot extract hook name from global stack" ,
@@ -515,7 +513,7 @@ NR_PHP_WRAPPER(nr_drupal94_invoke_all_with_callback) {
515
513
nr_drupal_hook_instrument (Z_STRVAL_P (module ), Z_STRLEN_P (module ),
516
514
NRPRG (drupal_invoke_all_hook ),
517
515
NRPRG (drupal_invoke_all_hook_len ) TSRMLS_CC );
518
- #endif // OAPI
516
+ #endif // OAPI
519
517
520
518
leave :
521
519
NR_PHP_WRAPPER_CALL ;
@@ -536,7 +534,7 @@ NR_PHP_WRAPPER(nr_drupal94_invoke_all_with) {
536
534
|| defined OVERWRITE_ZEND_EXECUTE_DATA
537
535
char * prev_hook = NULL ;
538
536
int prev_hook_len ;
539
- #endif // not OAPI
537
+ #endif // not OAPI
540
538
541
539
(void )wraprec ;
542
540
@@ -547,7 +545,7 @@ NR_PHP_WRAPPER(nr_drupal94_invoke_all_with) {
547
545
#if ZEND_MODULE_API_NO >= ZEND_8_0_X_API_NO \
548
546
&& !defined OVERWRITE_ZEND_EXECUTE_DATA
549
547
nr_php_arg_release (& hook );
550
- #endif // OAPI
548
+ #endif // OAPI
551
549
goto leave ;
552
550
}
553
551
@@ -561,7 +559,7 @@ NR_PHP_WRAPPER(nr_drupal94_invoke_all_with) {
561
559
= nr_strndup (Z_STRVAL_P (hook ), Z_STRLEN_P (hook ));
562
560
NRPRG (drupal_invoke_all_hook_len ) = Z_STRLEN_P (hook );
563
561
NRPRG (check_cufa ) = true;
564
- #endif // OAPI
562
+ #endif // OAPI
565
563
callback = nr_php_arg_get (2 , NR_EXECUTE_ORIG_ARGS TSRMLS_CC );
566
564
567
565
/* This instrumentation will fail if callback has already been wrapped
@@ -581,14 +579,14 @@ NR_PHP_WRAPPER(nr_drupal94_invoke_all_with) {
581
579
if (NULL == NRPRG (drupal_invoke_all_hook )) {
582
580
NRPRG (check_cufa ) = false;
583
581
}
584
- #endif // not OAPI
582
+ #endif // not OAPI
585
583
586
- leave : ;
584
+ leave :;
587
585
#if ZEND_MODULE_API_NO < ZEND_8_0_X_API_NO \
588
586
|| defined OVERWRITE_ZEND_EXECUTE_DATA
589
587
/* for OAPI, the _after callback handles this free */
590
588
nr_php_arg_release (& hook );
591
- #endif // not OAPI
589
+ #endif // not OAPI
592
590
}
593
591
NR_PHP_WRAPPER_END
594
592
@@ -605,7 +603,7 @@ NR_PHP_WRAPPER(nr_drupal94_invoke_all_with_clean) {
605
603
nr_drupal_invoke_all_hook_stacks_pop ();
606
604
}
607
605
NR_PHP_WRAPPER_END
608
- #endif // OAPI
606
+ #endif // OAPI
609
607
610
608
/*
611
609
* Purpose : Wrap the invoke() method of the module handler instance in use.
@@ -642,10 +640,8 @@ NR_PHP_WRAPPER(nr_drupal8_module_handler) {
642
640
#if ZEND_MODULE_API_NO >= ZEND_8_0_X_API_NO \
643
641
&& !defined OVERWRITE_ZEND_EXECUTE_DATA
644
642
nr_drupal8_add_method_callback_before_after_clean (
645
- ce , NR_PSTR ("invokeallwith" ),
646
- nr_drupal94_invoke_all_with ,
647
- nr_drupal94_invoke_all_with_after ,
648
- nr_drupal94_invoke_all_with_clean );
643
+ ce , NR_PSTR ("invokeallwith" ), nr_drupal94_invoke_all_with ,
644
+ nr_drupal94_invoke_all_with_after , nr_drupal94_invoke_all_with_clean );
649
645
#else
650
646
nr_drupal8_add_method_callback (ce , NR_PSTR ("invokeallwith" ),
651
647
nr_drupal94_invoke_all_with TSRMLS_CC );
@@ -766,14 +762,16 @@ void nr_drupal8_enable(TSRMLS_D) {
766
762
*/
767
763
#if ZEND_MODULE_API_NO >= ZEND_8_0_X_API_NO \
768
764
&& !defined OVERWRITE_ZEND_EXECUTE_DATA
765
+ // clang-format off
769
766
nr_php_wrap_user_function_before_after_clean (
770
- NR_PSTR ("Symfony\\Component\\HttpKernel\\EventListe"
771
- "ner\\RouterListener::onKernelRequest" ),
767
+ NR_PSTR ("Symfony\\Component\\HttpKernel\\EventListener\\RouterListener::onKernelRequest" ),
772
768
nr_drupal8_name_the_wt_via_symfony , NULL , NULL );
769
+ // clang-format on
773
770
#else
774
- nr_php_wrap_user_function ( NR_PSTR ( "Symfony\\Component\\HttpKernel\\EventListe"
775
- "ner \\RouterListener::onKernelRequest" ),
771
+ // clang-format off
772
+ nr_php_wrap_user_function ( NR_PSTR ( "Symfony\\Component\\HttpKernel\\EventListener \\RouterListener::onKernelRequest" ),
776
773
nr_drupal8_name_the_wt_via_symfony TSRMLS_CC );
774
+ // clang-format on
777
775
#endif
778
776
779
777
/*
@@ -783,9 +781,10 @@ void nr_drupal8_enable(TSRMLS_D) {
783
781
* above, but kicks in for use cases where the RouterListener is not
784
782
* involved.
785
783
*/
786
- nr_php_wrap_user_function ( NR_PSTR ( "Drupal\\Core\\Controller\\ControllerResolv"
787
- "er ::getControllerFromDefinition" ),
784
+ // clang-format off
785
+ nr_php_wrap_user_function ( NR_PSTR ( "Drupal\\Core\\Controller\\ControllerResolver ::getControllerFromDefinition" ),
788
786
nr_drupal8_name_the_wt TSRMLS_CC );
787
+ // clang-format on
789
788
790
789
/*
791
790
* ExceptionSubscribers handle Drupal errors and exceptions before
0 commit comments