mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Merge branch 'PHP-8.0'
This commit is contained in:
commit
13d396bb59
1 changed files with 6 additions and 1 deletions
|
@ -2754,9 +2754,14 @@ $output
|
|||
if (!$passed || $leaked) {
|
||||
// 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 {$orig_cmd}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue