Opened 5 years ago
Closed 5 years ago
#8125 closed defect (bug) (fixed)
func_get_args() should be cast to variable before being modified
Reported by: | boonebgorges | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 5.0.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Core | Keywords: | |
Cc: |
Description
The behavior of func_get_args()
was changed in PHP 7.0, so that it reflects the current value of function params, rather than the values originally passed. In cases where we use func_get_args()
, intending to reference the original values, we should cast to a variable early in the function. See https://www.php.net/manual/en/migration70.incompatible.php#migration70.incompatible.other.func-parameter-modified
Change History (1)
Note: See
TracTickets for help on using
tickets.
In 12426: