-
-
Notifications
You must be signed in to change notification settings - Fork 320
Fix static linux cli -a
not working issue
#893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Looks like this function has not been modified 15 years. I don't use CGI but it looks good to merge in php-src. There's no reason not to use inline methods when possible, but I'm not quite sure if this will affect other things, and the official obviously won't apply this update for old PHP version.... So I think we could fix it in SPC individually first. This problem also only occurs in linux full-static builds. |
We can have the patch first, but this should definitely be submitted to php-src. Static musl is likely just not in their CI so they never noticed. |
|
That would be a bug fix that would be backported to 8.1+ I think. But it seems like undefined references cause the builds to fail. |
Seems this change need to let other SAPI depend on cli SAPI if build statically or inline build. I just tested it with the single cli so I didn't find this issues. Maybe it can only be patched with the cli if we don't want to change dependencies. |
Yikes. Keep this PR for now until a better solution is found. |
I'm not a fan of merging it like this. Let's wait what feedback we get from php-src. |
What does this PR do?
Fix #888
Checklist before merging
*.php
or*.json
, run them locally to ensure your changes are valid:composer cs-fix
composer analyse
composer test
bin/spc dev:sort-config
src/globals/test-extensions.php
.extension test
ortest extensions
to trigger full test suite.