Skip to content

Windows MSVC portability #15

Closed
Closed

Description

@EdmondDantes

Overview

The extension currently compiles only on Linux. This tracking issue covers all work needed to make the codebase build and run on Windows (MSVC via php-sdk).

A preliminary audit identified the following categories of problems. Each has a dedicated child issue linked below.

Child issues

  • ssize_t undefined on MSVC — add typedef across affected headers
  • Bare <unistd.h> / <sys/param.h> includes without Windows guards
  • POSIX function calls (read, unlink, close, open) need Windows CRT aliases
  • http_static_safety.c — heavy POSIX usage (lstat, O_NOFOLLOW, realpath, st_uid, MAXPATHLEN)
  • config.w32 missing ~20 source files compared to config.m4
  • HTTP/3 Windows libuv fallback path audit

Out of scope for initial port

  • HTTP/3 GSO (UDP_SEGMENT) — Linux-only; per-segment fallback already exists
  • recvmmsg batch receive — Linux-only; libuv UDP fallback already exists
  • MSG_ERRQUEUE / ECN cmsg — guarded with #ifdef __linux__

Build environment

Windows build uses config.w32 (nmake/php-sdk). Dependencies (OpenSSL, nghttp2, ngtcp2, nghttp3, zlib, brotli, zstd) must be placed under PHP_PHP_BUILD\include / \lib.

Activity

  1. changed the title [-]feat(windows): Windows / MSVC portability — tracking issue[/-] [+]Windows MSVC portability[/+] on May 12, 2026
  2. self-assigned this
    on May 12, 2026
  3. added
    bug
    on May 12, 2026
  4. added theissue type on May 12, 2026
  5. moved this to In Progress in True Async Boardon May 12, 2026
  6. added this to the Next milestone on May 12, 2026
  7. added a commit that references this issue on May 12, 2026
    027eb96
  8. linked a pull request that will close this issue15 windows msvc portability #19on May 12, 2026
  9. moved this from In Progress to Done in True Async Boardon May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions