Repository navigation
fix test when tmp-php.ini is used - #25236
remicollet wants to merge 1 commit into
Conversation
Several of these tests fail to pass TEST_PHP_EXTRA_ARGS to the PHP binary they execute. This can lead to spurious failures when, for example, the system's INI file is incompatible with the just-built CLI php: ---- EXPECTED OUTPUT int(111) ---- ACTUAL OUTPUT Failed loading /usr/lib64/php8.2/lib64/opcache.so: /usr/lib64/php8.2/lib64/opcache.so: undefined symbol: _emalloc_32 int(111) ---- FAILED This commit adds TEST_PHP_EXTRA_ARGS to the "php" invocations that are missing them, allowing the user to run "run-tests.php -n" to work around the problem.
|
sorry :\ Maybe there's a way we can make it work for both of us?
We need the extra args on Gentoo so that we can tell php not to use the system's php.ini when testing a newly-built (but incompatible) version of php. Otherwise we get failures like and the user is prevented from upgrading. (That's an old example, but the same thing happens when e.g. switching from a debug build to a non-debug build.) |
It doesn't This test is only to ensure that
This problem exists since ever... |
|
I think your problem is https://github.com/php/php-src/blob/master/build/Makefile.global#L96 It is useful for extension but bad for php itself Perhaps P.S. but IMHO changing this is not suitable for stable branches P.S.2: there is also an issue with installed extensions (in extension_dir) which can be incompatible with the build engine |
|
We're not using There may be a way to work around it for this one test, for this one failure, but wouldn't it be better if the |
|
I've thrown my entry into the ring at #25261. In main/php_ini.c we're doing if (sapi_module.php_ini_path_override) {
...
} else if (!sapi_module.php_ini_ignore) {
...
}which is why the |
|
Can we concentrate on the very small change in this PR (other problems should be discussed somewhere else) The test check that |
Except this is not true, as the failing test now shows. I would prefer not to have to disable this test and come back and fix it again in three years, but I don't want to argue forever about something that can be fixed with a single |
|
With |
bukka
left a comment
There was a problem hiding this comment.
I agree with Derick and Remi here.
|
Thanks for the review Merged in 8.4+ |
Failing since b9f4113
TEST_PHP_EXTRA_ARGSis-n -c '/work/build/php84/tmp-php.ini' ...So the test is failing with