Commit 612a5aa
committed
bug #49376 [HttpFoundation] Deprecate passing invalid URI to Request::create (neclimdul)
This PR was merged into the 6.3 branch.
Discussion
----------
[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.
| Q | A
| ------------- | ---
| Branch? | 6.3
| Bug fix? | yes
| New feature? | no
| Deprecations? | yes
| Tickets | Fix #47084
| License | MIT
Commits
-------
bce4c27097 [HttpFoundation] Deprecate passing invalid URI to Request::create2 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