Skip to content

Commit aa984e7

Browse files
committed
php#53: Fix stream tests
1 parent 322e26a commit aa984e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Zend/zend_async_API.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ ZEND_API zend_async_waker_t *zend_async_waker_new_with_timeout(
948948

949949
if (timeout > 0) {
950950
zend_async_resume_when(coroutine, &ZEND_ASYNC_NEW_TIMER_EVENT(timeout, false)->base, true,
951-
zend_async_waker_callback_timeout, NULL);
951+
zend_async_waker_callback_resolve, NULL);
952952
}
953953

954954
if (cancellation != NULL) {

main/network_async.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ ZEND_API int network_async_await_stream_socket(php_stream *stream, short events,
251251
}
252252

253253
// Use unified approach: get event handle via php_stream_set_option
254-
zend_async_poll_event_t *poll_event = NULL;
254+
zend_async_poll_proxy_t *poll_event = NULL;
255255
zend_ulong async_events = poll2_events_to_async(events);
256256

257257
php_stream_set_option(stream, PHP_STREAM_OPTION_ASYNC_EVENT_HANDLE, async_events, &poll_event);

0 commit comments

Comments
 (0)