Skip to content

Commit

Permalink
Fix fibers on PHP 8.1.2
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Weinand <[email protected]>
  • Loading branch information
bwoebi committed Jan 15, 2024
1 parent 34e2b37 commit cc0141a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/handlers_fiber.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ static void dd_set_observed_frame(zend_execute_data *execute_data) {
fake_ex.prev_execute_data = execute_data;

volatile void *run_time_cache_start;
zend_observer_fcall_data handlers = { .end = handlers.handlers + 1, .handlers = { { NULL, &dd_dummy_end_observer } } };
zend_observer_fcall_data handlers = { .end = handlers.handlers + 1, .handlers = { { NULL, &dd_dummy_end_observer } } }, *handlers_ptr = &handlers;
zend_observer_fcall_end_handler end_handlers[2] = { &dd_dummy_end_observer, NULL };
if (dd_legacy_observers) {
run_time_cache_start = ((void **) &handlers) - zend_observer_fcall_op_array_extension;
run_time_cache_start = ((void **) &handlers_ptr) - zend_observer_fcall_op_array_extension;
} else {
run_time_cache_start = ((void **) end_handlers) - zend_observer_fcall_op_array_extension - zai_registered_observers;
}
Expand Down

0 comments on commit cc0141a

Please sign in to comment.