[buddypress-trac] [BuddyPress Trac] #8125: func_get_args() should be cast to variable before being modified

buddypress-trac noreply at wordpress.org
Thu Aug 8 19:47:45 UTC 2019


#8125: func_get_args() should be cast to variable before being modified
--------------------------+--------------------
 Reporter:  boonebgorges  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  5.0.0
Component:  Core          |    Version:
 Severity:  normal        |   Keywords:
--------------------------+--------------------
 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

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8125>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list