Skip to content

feat(windows): add the sockets extension to the Windows SDK sets - #76

Open
luthermonson wants to merge 2 commits into
mainfrom
feat/add-sockets
Open

luthermonson wants to merge 2 commits into
mainfrom
feat/add-sockets

Conversation

@luthermonson

Copy link
Copy Markdown
Contributor

Linux and macOS already build `sockets` (it has been in `PHP_EXTENSIONS` since #40, and the published 8.5.11 Linux SDK ships `include/php/ext/sockets/`). Windows was the only gap. phpIPAM refuses to run without it (ephpm/recipes `issues/phpipam.md`); other apps calling `socket_*()` are affected the same way.

Changes:

  • `build.yml`: add `sockets` to `WIN_PHP_EXTENSIONS` in both the MSVC and clang Windows legs; update the NOTE explaining why `shmop` is still excluded.
  • `tools/windows-shared/package.ps1`: add `sockets` to the preload set (windows.php.net ships `php_sockets.dll`).
  • `README.md`: Windows paragraph no longer says `sockets` is missing.

Why it links: PHP's `ext/sockets/config.w32` (8.3 to 8.5) needs only `ws2_32.lib` and `Iphlpapi.lib`. `ext/standard` already adds `iphlpapi.lib`, and ephpm's Windows link line already has `ws2_32`. spc's `ext-sockets` has no OS restriction and no library dependency.

Not changed: `mirror-deps.yml` (sockets has no library dependency to mirror), the pinned SDK in ephpm's xtask.

Validation: a non-production Windows dispatch with a `release_tag_suffix` (see PR comments). No production build is dispatched by this PR; the SDK is rebuilt separately.

Linux and macOS already build sockets (added in #40). Add it to both Windows
extension lists (MSVC and clang) and to the windows-shared preload set. PHP's
ext/sockets/config.w32 needs only ws2_32.lib and Iphlpapi.lib, both already
linked by ext/standard and by ephpm's Windows link line.

Needed by phpIPAM, which refuses to run without it (ephpm/recipes
issues/phpipam.md).
@ephpm

ephpm Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

ePHPm Preview — deployed (health check pending)

URL https://ephpm-php-sdk-pr-76.preview.ephpm.dev
Framework PHP
PHP 8.5
Deployed in 60.6s

Preview updates automatically on each push to this PR.

@ephpm
ephpm Bot temporarily deployed to preview-pr-76 October 12, 2026 05:30 Inactive
@ephpm
ephpm Bot temporarily deployed to preview-pr-76 October 12, 2026 05:30 Inactive
@ephpm
ephpm Bot temporarily deployed to preview-pr-76 October 12, 2026 05:30 Inactive
@ephpm
ephpm Bot temporarily deployed to preview-pr-76 October 12, 2026 05:31 Inactive
@ephpm
ephpm Bot temporarily deployed to preview-pr-76 October 12, 2026 05:31 Inactive

This branch was successfully deployed

1 active deployment
preview-pr-76 — 4d40ab94 Deployed Oct 12, 2026 by ephpm[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant