mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
- fix ENV section handling
This commit is contained in:
parent
c60949d0b1
commit
10e23ddfd5
@ -1154,11 +1154,9 @@ TEST $file
|
||||
$env['CONTENT_TYPE']='';
|
||||
$env['CONTENT_LENGTH']='';
|
||||
if (!empty($section_text['ENV'])) {
|
||||
foreach(explode("\n", $section_text['ENV']) as $e) {
|
||||
$e = explode('=',trim($e));
|
||||
if (count($e) == 2) {
|
||||
$env[$e[0]] = $e[1];
|
||||
}
|
||||
foreach(explode("\n", trim($section_text['ENV'])) as $e) {
|
||||
$e = explode('=',trim($e),2);
|
||||
$env[$e[0]] = $e[1];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user