Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f0ffa47

Browse filesBrowse files
committed
bug symfony#46149 Modify processing of uploaded files to be compatible with PHP 8.1 (p-golovin)
This PR was submitted for the 5.4 branch but it was merged into the 4.4 branch instead. Discussion ---------- Modify processing of uploaded files to be compatible with PHP 8.1 Remove full_path from keys before check Keep logic the same as in src/Symfony/Component/HttpFoundation/FileBag.php | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix symfony#46146 | License | MIT Commits ------- a5cc1e1 Modify processing of uploaded files to be compatible with PHP 8.1
2 parents 8d24d0a + a5cc1e1 commit f0ffa47
Copy full SHA for f0ffa47

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎src/Symfony/Component/Form/NativeRequestHandler.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/NativeRequestHandler.php
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ private static function fixPhpFilesArray($data)
198198
return $data;
199199
}
200200

201+
// Remove extra key added by PHP 8.1.
202+
unset($data['full_path']);
201203
$keys = array_keys($data);
202204
sort($keys);
203205

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.