gcc 15 building shared extensions: segfault when running `php -d extension=memcache --ri memcache`
Not sure what this is about. Perhaps C23 default makes the code misbehave?
Edit: mysqli too!
/home/m/spc-packages/vendor/crazywhalecc/static-php-cli/buildroot/bin/php -n -d "extension_dir=/home/m/spc-packages/vendor/crazywhalecc/static-php-cli/buildroot/modules" -d "extension=mysqlnd" -d "extension=mysqli" --ri "mysqli"
Segmentation fault (core dumped)
I'm currently mainly focused on refactoring work, so I may not have much energy to dedicate to the build bugs for specific behavior. If you're willing to take over, please assign it to yourself; otherwise, make this into milestone and I will leave it until finishing major 3.0 part.
Forgot to assign myself, I did some good progress but somehow regressed spx into a build failure. Probably linked to setting c17 instead of gnu17 in my tests.
With it empty it compiles again, but the extensions segfault. This will have to stay open for two weeks until I'm back.
Right now I have all libraries and SAPI's building fine with gcc 15. But when building shared extensions, they still produce segfaults.
Building libraries + sapi with gcc 15 but then building extensions with gcc 14 works with no issues.
It's patchelf. Dropping it. Looking for a way to properly take care of soname for phpize'd shared libraries instead.
Gcc 15 ready in fixes branch.