mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-07 09:17:29 +00:00
Export ENV in .sh file generated by run-tests
This commit is contained in:
1 parent
140eca603c
commit
76a4ea5e2a
1 file changed
+6
-1
+6
-1
@@ -2780,9 +2780,14 @@ COMMAND $cmd
|
||||
|
||||
// write .sh
|
||||
if (strpos($log_format, 'S') !== false) {
|
||||
$env_lines = [];
|
||||
foreach ($env as $env_var => $env_val) {
|
||||
$env_lines[] = "export $env_var=" . escapeshellarg($env_val);
|
||||
}
|
||||
$exported_environment = $env_lines ? "\n" . implode("\n", $env_lines) . "\n" : "";
|
||||
$sh_script = <<<SH
|
||||
#!/bin/sh
|
||||
|
||||
{$exported_environment}
|
||||
case "$1" in
|
||||
"gdb")
|
||||
gdb --args {$cmd}
|
||||
|
||||
Reference in new issue
Block a user