static-php-cli: Latest PHP versions can not be patched

When trying to build the latest PHP versions, the Micro patches can not be applied.

[09:36:36] [ERRO] Uncaught SPC\exception\FileSystemException: Cannot extract source micro: Command run failed with code[1]: cd /Users/runner/work/static-php-builder/static-php-builder/source/php-src && cat sapi/micro/patches/static_opcache_83.patch sapi/micro/patches/static_extensions_win32_83.patch sapi/micro/patches/cli_checks_83.patch sapi/micro/patches/disable_huge_page_80.patch sapi/micro/patches/vcruntime140_80.patch sapi/micro/patches/win32_82.patch sapi/micro/patches/zend_stream.patch sapi/micro/patches/macos_iconv.patch | patch -p1  at /Users/runner/work/static-php-builder/static-php-builder/src/SPC/store/FileSystem.php(205)
[09:36:36] [ERRO] #0 /Users/runner/work/static-php-builder/static-php-builder/src/SPC/store/SourceManager.php(65): SPC\store\FileSystem::extractSource()

I assume something changed between 8.3.10/8.3.11 and 8.2.22/8.2.23

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 15 (15 by maintainers)

Most upvoted comments

@simonhamp I added x.y.z specific version download for --with-php option in #532 . You can switch php version using bin/spc switch-php-version 8.2.22 --debug command. Or you can directly download fresh new php-src using bin/spc download --for-extensions=xxx --with-php=8.2.22 --ignore-cache-sources=php-src.