Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
Commitab9e844
committed
[HttpFoundation] Deprecate passing invalid URI to Request::create
Fixes:#47084Passing an invalid URI to Request::create triggers an undefined codepath. In PHP7 the false value returned by parse_url would quietly betreated as a an array through type coercion leading to unexpectedresults. In PHP8 this triggers a deprecation exposing the bug.1 parente16aea4 commitab9e844
File tree
2 files changed
+13
-0
lines changed- src/Symfony/Component/HttpFoundation
- Tests
2 files changed
+13
-0
lines changedLines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
342 | 342 |
| |
343 | 343 |
| |
344 | 344 |
| |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
345 | 349 |
| |
346 | 350 |
| |
347 | 351 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2554 | 2554 |
| |
2555 | 2555 |
| |
2556 | 2556 |
| |
| 2557 | + | |
| 2558 | + | |
| 2559 | + | |
| 2560 | + | |
| 2561 | + | |
| 2562 | + | |
| 2563 | + | |
| 2564 | + | |
| 2565 | + | |
2557 | 2566 |
| |
2558 | 2567 |
| |
2559 | 2568 |
| |
|
0 commit comments
Comments
(0)