Fix warning in run-tests when PHP compiled without generating phpdbg support. (#10745)

This commit is contained in:
Danack 2023-03-03 01:50:02 +00:00 committed by GitHub
parent e447036dc6
commit 3e6d49e042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -686,8 +686,8 @@ function main(): void
$environment['TEST_PHP_CGI_EXECUTABLE_ESCAPED'] = escapeshellarg($php_cgi);
putenv("TEST_PHPDBG_EXECUTABLE=$phpdbg");
$environment['TEST_PHPDBG_EXECUTABLE'] = $phpdbg;
putenv("TEST_PHPDBG_EXECUTABLE_ESCAPED=" . escapeshellarg($phpdbg));
$environment['TEST_PHPDBG_EXECUTABLE_ESCAPED'] = escapeshellarg($phpdbg);
putenv("TEST_PHPDBG_EXECUTABLE_ESCAPED=" . escapeshellarg($phpdbg ?? ''));
$environment['TEST_PHPDBG_EXECUTABLE_ESCAPED'] = escapeshellarg($phpdbg ?? '');
if ($conf_passed !== null) {
if (IS_WINDOWS) {