Commit 153d1f3
committed
[HttpFoundation] Deprecate passing invalid URI to Request::create
Fixes: #47084
Passing an invalid URI to Request::create triggers an undefined code
path. In PHP7 the false value returned by parse_url would quietly be
treated as a an array through type coercion leading to unexpected
results. In PHP8 this triggers a deprecation exposing the bug.1 parent 80ea4f4 commit 153d1f3
2 files changed
+13
-0
lines changed| 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 | | |
| |||
| 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