[php-src] PR #16099: Do load default ini files in tests
| From: | arnaud-lb | Date: | Sat, 28 Sep 2024 13:46:36 +0000 |
| Subject: | [php-src] PR #16099: Do load default ini files in tests | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-28860@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/16099
Author: arnaud-lb
make test concatenates the default ini files (from config-file-path and
config-file-scan-dir) into a temporary tmp-php.ini, which is loaded in
tests.
This leads to unexpected results, and sometimes to difficulties when trying to debug failing tests
(mostly because generated .sh scripts for failing tests try to load the
tmp-php.ini file, which is removed by make test).
I think that we should not load any ini file by default in tests, to reduce the impact of the
environment on the test suite. It is always possible to specify an ini file explicitly (make
test TESTS="-c file.ini") or ini settings (make test TESTS="-d
...").