File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ ZEND_DECLARE_MODULE_GLOBALS(aspect)
28
28
29
29
static void (* original_zend_execute_ex )(zend_execute_data * execute_data );
30
30
31
- ZEND_API static void aspect_execute_ex (zend_execute_data * execute_data );
31
+ static void aspect_execute_ex (zend_execute_data * execute_data );
32
32
33
33
static void handle_memoize_functions (zend_execute_data * execute_data );
34
34
@@ -111,7 +111,11 @@ static void aspect_execute_ex(zend_execute_data *execute_data) {
111
111
zend_type return_type = ret_info -> type ;
112
112
uint32_t type_mask = return_type .type_mask ;
113
113
114
- if (type_mask & ((uint32_t )1 << IS_VOID ) || type_mask & ((uint32_t )1 << IS_NEVER )) {
114
+ if (type_mask & ((uint32_t )1 << IS_VOID )
115
+ #if PHP_VERSION_ID >= 80100
116
+ || type_mask & ((uint32_t )1 << IS_NEVER )
117
+ #endif
118
+ ) {
115
119
// cannot memoize functions with void or never return types
116
120
// @TODO: Should this be an error/exception?
117
121
original_zend_execute_ex (execute_data );
You can’t perform that action at this time.
0 commit comments