Skip to content

curl package build fails on Windows (v3.0.0-alpha1) - cmake build exits with code 1 #1192

Closed

Description

@Pheonix55

Environment

  • static-php-cli version: v3.0.0-alpha1
  • OS: Windows (GitHub Actions windows-2022 runner / also reproduced locally)
  • PHP version: 8.4 / 8.3
  • Toolchain: MSVC (VS 2022, vs17)

Command

Run ./bin/spc build "bcmath,ctype,date,dom,fileinfo,filter,gd,hash,iconv,json,libxml,mbstring,mysqli,mysqlnd,openssl,pcre,pdo,pdo_mysql,pdo_sqlite,random,reflection,session,sodium,spl,sqlite3,standard,tokenizer,xml,xmlreader,xmlwriter,zlib,curl" --with-libs="libzip,zlib,openssl,nghttp2,libssh2" --build-cli

Error

All prior packages (zlib, sqlite, zstd, jom, openssl, libzip, libiconv-win, libxml2, libpng, brotli, libssh2, nghttp2) build successfully. The build fails specifically at the curl package:

Build logs

https://github.com/Pheonix55/static-php-cli/actions/runs/27808092284/artifacts/7742735468

Activity

  1. added
    question
    on Jun 20, 2026
  2. added
    bug
    kind/dependency
    and removed
    question
    on Jun 21, 2026
  3. Pheonix55 commented on Jun 21, 2026

    @Pheonix55
    Author

    Can confirm the fix in #1193 resolves this issue! 🎉

    Tested by pulling the feat/replace-phpsdk-with-msys2 branch into my fork and running the build via GitHub Actions (Windows runner) with the same extension set as before:

    bcmath,ctype,date,dom,fileinfo,filter,gd,hash,iconv,json,libxml,mbstring,mysqli,mysqlnd,openssl,pcre,pdo,pdo_mysql,pdo_sqlite,random,reflection,session,sodium,spl,sqlite3,standard,tokenizer,xml,xmlreader,xmlwriter,zlib,curl

    The curl package now builds successfully and php.exe -m confirms it's loaded in the final binary. Thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugkind/dependency

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions