Merge pull request #19270 from frederic34/patch-9

replace function each deprecated in php 7.2
This commit is contained in:
Laurent Destailleur 2021-11-01 02:36:54 +01:00 committed by GitHub
commit 82d02e8465
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")
{