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)
2828
2929static void (* original_zend_execute_ex )(zend_execute_data * execute_data );
3030
31- ZEND_API static void aspect_execute_ex (zend_execute_data * execute_data );
31+ static void aspect_execute_ex (zend_execute_data * execute_data );
3232
3333static void handle_memoize_functions (zend_execute_data * execute_data );
3434
@@ -111,7 +111,11 @@ static void aspect_execute_ex(zend_execute_data *execute_data) {
111111 zend_type return_type = ret_info -> type ;
112112 uint32_t type_mask = return_type .type_mask ;
113113
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+ ) {
115119 // cannot memoize functions with void or never return types
116120 // @TODO: Should this be an error/exception?
117121 original_zend_execute_ex (execute_data );
You can’t perform that action at this time.
0 commit comments