Skip to:

Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#4294 closed defect (bug) (fixed)

func_get_args() can’t be used as a function parameter

Reported by: djpaul's profile DJPaul Owned by:
Milestone: 1.6 Priority: normal
Severity: blocker Version: 1.6
Component: Core Keywords: needs-patch


PHP 5.3+ supports using func_get_args() as a function parameter, but PHP 5.2.x doesn't. Simple to fix (store result in a variable, then pass that to the function).

func_get_args(): Can’t be used as a function parameter in /home/valuser/public_html/ 138

See also similar bug report on Drupal:

Reported on

Change History (6)

#1 @DJPaul
12 years ago

  • Version set to 1.6-beta

#2 @djpaul
12 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [6131]) Don't use func_get_args() directly as a function parameter for compatibility with PHP 5.2.x.
Fixes #4294

#3 @boonebgorges
10 years ago

In 7800:

Don't use func_get_args() as a function paramater

This should appease certain PHP 5.2 setups, including travis-ci

See #4294

#4 @johnjamesjacoby
9 years ago

  • Version changed from 1.6-beta to 1.6

#5 @johnjamesjacoby
9 years ago

  • Component changed from Component - Any/All to Tools - Warnings/Notices

#6 @DJPaul
8 years ago

  • Component changed from Tools - Warnings/Notices to Core
Note: See TracTickets for help on using tickets.