mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +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) {
|
if (!$passed || $leaked) {
|
||||||
// write .sh
|
// write .sh
|
||||||
if (strpos($log_format, 'S') !== false) {
|
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
|
$sh_script = <<<SH
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
{$exported_environment}
|
||||||
case "$1" in
|
case "$1" in
|
||||||
"gdb")
|
"gdb")
|
||||||
gdb --args {$orig_cmd}
|
gdb --args {$orig_cmd}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue