Merge pull request #19270 from frederic34/patch-9
replace function each deprecated in php 7.2
This commit is contained in:
commit
82d02e8465
@ -366,7 +366,9 @@ class http_class
|
||||
$content_length = 0;
|
||||
foreach ($this->arguments["BodyStream"] as $argument)
|
||||
{
|
||||
list ($type, $value) = each ($argument);
|
||||
// list ($type, $value) = each ($argument);
|
||||
$type = key($argument);
|
||||
$value = current($argument);
|
||||
reset ($argument);
|
||||
if ($type == "Data")
|
||||
{
|
||||
@ -420,7 +422,9 @@ class http_class
|
||||
}
|
||||
foreach ($this->arguments["BodyStream"] as $argument)
|
||||
{
|
||||
list ($type, $value) = each ($argument);
|
||||
// list ($type, $value) = each ($argument);
|
||||
$type = key($argument);
|
||||
$value = current($argument);
|
||||
reset ($argument);
|
||||
if ($type == "Data")
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user