Skip to content

[WIP] Fix php 8.3 avx512 check despite cached vars#1114

Closed
Claude wants to merge 2 commits intomainfrom
claude/fix-avx512-check-issue
Closed

[WIP] Fix php 8.3 avx512 check despite cached vars#1114
Claude wants to merge 2 commits intomainfrom
claude/fix-avx512-check-issue

Conversation

@Claude
Copy link
Copy Markdown

@Claude Claude AI commented Apr 20, 2026

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.


This section details on the original issue you should resolve

<issue_title>php 8.3 somehow runs avx512 check despite the cached vars being set to no</issue_title>
<issue_description>https://github.com/static-php/packages/actions/runs/24593405023</issue_description>

<agent_instructions>Analyse this issue, and find a solution.</agent_instructions>

Comments on the Issue (you are @claude[agent] in this section)

@henderkes @claude yo? @henderkes okay it seems that this assigning thing is triggered via github copilot subscription which I don't have, so I guess that's why it's not working?

The issue was that SPC_EXTRA_PHP_VARS (containing php_cv_have_avx512=no
and php_cv_have_avx512vbmi=no) were being passed as command-line arguments
to ./configure instead of as environment variables. This caused PHP's
autoconf system to ignore the cached values and run AVX512 checks anyway.

Changes:
- LinuxBuilder.php: Parse SPC_EXTRA_PHP_VARS and add them to the
  environment variable array that's passed to configure
- Extension.php: Apply the same fix for shared extension builds

The variables are now properly set in the environment before configure
runs, allowing PHP's autoconf cache system to recognize and use them.

Agent-Logs-Url: https://github.com/crazywhalecc/static-php-cli/sessions/03f84520-e96c-4748-aa05-bfd98e26fed8

Co-authored-by: crazywhalecc <20330940+crazywhalecc@users.noreply.github.com>
@henderkes
Copy link
Copy Markdown
Collaborator

No, useless approach. I'll do it later.

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.

php 8.3 somehow runs avx512 check despite the cached vars being set to no

3 participants