Opened 7 years ago
Closed 7 years ago
#8125 closed defect (bug) (fixed)
func_get_args() should be cast to variable before being modified
| Reported by: | boonebgorges | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.0.0 |
| Component: | Core | Version: | |
| Severity: | normal | 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
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 12426: