The TEST_PHP_ARGS environment variable can also contain arguments for run-tests.php and should not be passed directly to the PHP binary. This change passes through only the options that are valid.
Also includes additional logic to ensure that all required extensions are available in the child process in as many cases as reasonably possible - dl() cannot be relied on to work, and does not work at all in zts builds.
The
TEST_PHP_ARGS
environment variable can also contain arguments forrun-tests.php
and should not be passed directly to the PHP binary. This change passes through only the options that are valid.Also includes additional logic to ensure that all required extensions are available in the child process in as many cases as reasonably possible -
dl()
cannot be relied on to work, and does not work at all in zts builds.