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);