HumHub Documentation (unofficial)

PhpSuperGlobalsConverter

Converts BrowserKit\Request's request parameters and files into PHP-compatible structure

Tags
see
https://bugs.php.net/bug.php?id=25589
see
https://bugs.php.net/bug.php?id=25589

Table of Contents

Methods

remapFiles()  : array<string|int, mixed>
Rearrange files array to be compatible with PHP $_FILES superglobal structure
remapRequestParameters()  : array<string|int, mixed>
Escape high-level variable name with dots, underscores and other "special" chars to be compatible with PHP "bug"
rearrangeFiles()  : mixed
replaceSpaces()  : array<string|int, mixed>
Replace spaces and dots and other chars in high-level query parameters for compatibility with PHP bug (or not a bug)

Methods

remapFiles()

Rearrange files array to be compatible with PHP $_FILES superglobal structure

protected remapFiles(array<string|int, mixed> $requestFiles) : array<string|int, mixed>
Parameters
$requestFiles : array<string|int, mixed>
Tags
see
https://bugs.php.net/bug.php?id=25589
Return values
array<string|int, mixed>

remapRequestParameters()

Escape high-level variable name with dots, underscores and other "special" chars to be compatible with PHP "bug"

protected remapRequestParameters(array<string|int, mixed> $parameters) : array<string|int, mixed>
Parameters
$parameters : array<string|int, mixed>
Tags
see
https://bugs.php.net/bug.php?id=40000
Return values
array<string|int, mixed>

replaceSpaces()

Replace spaces and dots and other chars in high-level query parameters for compatibility with PHP bug (or not a bug)

private replaceSpaces(array<string|int, mixed> $parameters) : array<string|int, mixed>
Parameters
$parameters : array<string|int, mixed>

Array of request parameters to be converted

Tags
see
https://bugs.php.net/bug.php?id=40000
Return values
array<string|int, mixed>

        
On this page

Search results