Problem with func_get_args() in PHP 5.2.x

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
Posts: 111
Joined: Wed Jul 25, 2012 2:56 pm
Location: Munich, Germany

Problem with func_get_args() in PHP 5.2.x

Postby springday » Fri Sep 14, 2012 2:20 pm

Today I received an error message on a host running PHP 5.2.x, referring to a line in

Code: Select all

return call_user_func_array(array($this->getDataSource(), 'Concat'), func_get_args());

It told me that func_get_args() is not allowed to be used as an argument. I checked, they say this function can only be used as an argument starting from PHP 5.3. So as long as OJS wants to support versions prior to PHP 5.3 there should be a work around, as suggested in the PHP article


Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: Problem with func_get_args() in PHP 5.2.x

Postby asmecher » Fri Sep 14, 2012 2:30 pm

Hi Kai,

The occasional strangeness of PHP strikes again. I've posted a fix for this at; the same pattern doesn't appear to have been used elsewhere in the codebase. This is now listed on OJS 2.4.0 recommended patches.

Alec Smecher
Public Knowledge Project Team

Return to “OJS Technical Support”

Who is online

Users browsing this forum: No registered users and 1 guest