From f4521172b0c62728de2dfd68afc9ca374d69b571 Mon Sep 17 00:00:00 2001 From: Danack Date: Wed, 1 Mar 2023 21:18:41 +0000 Subject: [PATCH] Fix warning in run-tests when PHP compiled without generating phpdbg support. --- run-tests.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run-tests.php b/run-tests.php index 6ff9041a5d08b..1f21b5073f3d9 100755 --- a/run-tests.php +++ b/run-tests.php @@ -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) {