diff --git a/run-tests.php b/run-tests.php index b7e85b293fc..5fefb8f9093 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1678,6 +1678,7 @@ escape: 'E_USER_NOTICE', 'E_STRICT', // TODO Cleanup when removed from Zend Engine. 'E_RECOVERABLE_ERROR', + 'E_DEPRECATED', 'E_USER_DEPRECATED' ]; $error_consts = array_combine(array_map('constant', $error_consts), $error_consts); @@ -2756,7 +2757,7 @@ $output if (strpos($log_format, 'S') !== false) { $env_lines = []; foreach ($env as $env_var => $env_val) { - $env_lines[] = "export $env_var=" . escapeshellarg($env_val); + $env_lines[] = "export $env_var=" . escapeshellarg($env_val ?? ""); } $exported_environment = $env_lines ? "\n" . implode("\n", $env_lines) . "\n" : ""; $sh_script = <<