replace function each deprecated in php 7.2

Warning This function has been DEPRECATED as of PHP 7.2.0, and REMOVED as of PHP 8.0.0. Relying on this function is highly discouraged.

Avertissement Cette fonctionnalité est OBSOLÈTE à partir de PHP 7.2.0 et a été SUPPRIMÉE à partir de PHP 8.0.0.
This commit is contained in:
Frédéric FRANCE 2021-11-01 01:10:30 +01:00 committed by GitHub
parent cb648705ce
commit e02565190a
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")
{