mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.0'
This commit is contained in:
commit
0dbbf9ec47
1 changed files with 2 additions and 1 deletions
|
@ -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 = <<<SH
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue