Upgrade 1-11.38

This commit is contained in:
xesmyd
2026-03-30 14:10:30 +02:00
parent f2a7e6d1fc
commit ac648ef29d
24665 changed files with 69682 additions and 2205004 deletions
+2 -2
View File
@@ -133,7 +133,7 @@ class OrderedHashMap implements \ArrayAccess, \IteratorAggregate, \Countable
: 1 + (int) max($this->orderedKeys);
}
$this->orderedKeys[] = $key;
$this->orderedKeys[] = (string) $key;
}
$this->elements[$key] = $value;
@@ -144,7 +144,7 @@ class OrderedHashMap implements \ArrayAccess, \IteratorAggregate, \Countable
*/
public function offsetUnset($key)
{
if (false !== ($position = array_search($key, $this->orderedKeys))) {
if (false !== ($position = array_search((string) $key, $this->orderedKeys))) {
array_splice($this->orderedKeys, $position, 1);
unset($this->elements[$key]);
+9 -3
View File
@@ -59,9 +59,9 @@ class OrderedHashMapIterator implements \Iterator
* Creates a new iterator.
*
* @param array $elements The elements of the map, indexed by their
* keys.
* keys
* @param array $orderedKeys The keys of the map in the order in which
* they should be iterated.
* they should be iterated
* @param array $managedCursors An array from which to reference the
* iterator's cursor as long as it is alive.
* This array is managed by the corresponding
@@ -118,7 +118,13 @@ class OrderedHashMapIterator implements \Iterator
*/
public function key()
{
return $this->key;
if (null === $this->key) {
return null;
}
$array = array($this->key => null);
return key($array);
}
/**
+3
View File
@@ -62,8 +62,11 @@ class ServerParams
switch (substr($iniMax, -1)) {
case 't': $max *= 1024;
// no break
case 'g': $max *= 1024;
// no break
case 'm': $max *= 1024;
// no break
case 'k': $max *= 1024;
}