diff --git a/run-tests.php b/run-tests.php index 822850af71b7b..b708f73c72b8a 100755 --- a/run-tests.php +++ b/run-tests.php @@ -2748,10 +2748,24 @@ function run_test($php, $file, $env) } // write .sh - if (strpos($log_format, 'S') !== false && file_put_contents($sh_filename, "#!/bin/sh - -{$cmd} -", FILE_BINARY) === false) { + if (strpos($log_format, 'S') !== false && file_put_contents($sh_filename, <<