We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 608f025 commit 4186a4bCopy full SHA for 4186a4b
src/functions/marshal_headers_from_sapi.php
@@ -66,6 +66,9 @@ function marshalHeadersFromSapi(array $server): array
66
}
67
68
69
- // Filter out integer keys
+ // Filter out integer keys.
70
+ // These can occor if the translated header name is a string integer.
71
+ // PHP will cast those to integers when assigned to an array.
72
+ // This filters them out.
73
return array_filter($headers, fn(string|int $key): bool => is_string($key), ARRAY_FILTER_USE_KEY);
74
0 commit comments