[php-src] PR #11669: tests: add missing TEST_PHP_EXTRA_ARGS
| From: | orlitzky | Date: | Tue, 11 Jul 2023 02:44:31 +0000 |
| Subject: | [php-src] PR #11669: tests: add missing TEST_PHP_EXTRA_ARGS | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-22992@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11669
Author: orlitzky
If I test a debug build while I have a non-debug PHP installed on the system, I get a bunch of test
failures that can all be traced back to,
```
$ sapi/cli/php
Failed loading /usr/lib64/php8.2/lib64/opcache.so: /usr/lib64/php8.2/lib64/opcache.so: undefined
symbol: _emalloc_32
```
The non-debug
opcache.so is trying to load from the system's INI file.
Of course, I'm running the tests with sapi/cli/php -n ./run-tests.php -n, but the
-n is not always passed to sub-invocations of PHP inside the test cases. This PR fixes
most of them by passing TEST_PHP_EXTRA_ARGS to those invocations, but a few (described
in the commit message) were much simpler to fix with only an -n.