From 719254b057bff8005c112a938f7f19f2be789937 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Mon, 30 Nov 2026 20:08:49 +0000 Subject: [PATCH] main: pack php_io_fd struct --- main/php_io.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/php_io.h b/main/php_io.h index 79bc245ef754..a09ace544d5f 100644 --- a/main/php_io.h +++ b/main/php_io.h @@ -22,11 +22,11 @@ #define PHP_IO_COPY_ALL SIZE_MAX -typedef enum php_io_fd_type { +C23_ENUM(php_io_fd_type, uint8_t) { PHP_IO_FD_FILE = 1, PHP_IO_FD_SOCKET, PHP_IO_FD_PIPE, -} php_io_fd_type; +}; typedef struct php_io_fd { union { @@ -34,8 +34,8 @@ typedef struct php_io_fd { php_socket_t socket; }; php_io_fd_type fd_type; + bool is_blocked; struct timeval timeout; - unsigned is_blocked:1; } php_io_fd; typedef zend_result (*php_io_copy_fn)(php_io_fd *src, php_io_fd *dest, size_t maxlen, size_t *copied);