Skip to content

Commit 3e6d49e

Browse files
authored
Fix warning in run-tests when PHP compiled without generating phpdbg support. (#10745)
1 parent e447036 commit 3e6d49e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run-tests.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,8 @@ function main(): void
686686
$environment['TEST_PHP_CGI_EXECUTABLE_ESCAPED'] = escapeshellarg($php_cgi);
687687
putenv("TEST_PHPDBG_EXECUTABLE=$phpdbg");
688688
$environment['TEST_PHPDBG_EXECUTABLE'] = $phpdbg;
689-
putenv("TEST_PHPDBG_EXECUTABLE_ESCAPED=" . escapeshellarg($phpdbg));
690-
$environment['TEST_PHPDBG_EXECUTABLE_ESCAPED'] = escapeshellarg($phpdbg);
689+
putenv("TEST_PHPDBG_EXECUTABLE_ESCAPED=" . escapeshellarg($phpdbg ?? ''));
690+
$environment['TEST_PHPDBG_EXECUTABLE_ESCAPED'] = escapeshellarg($phpdbg ?? '');
691691

692692
if ($conf_passed !== null) {
693693
if (IS_WINDOWS) {

0 commit comments

Comments
 (0)