GetSimple Support Forum

Full Version: call_user_func_array Problem with PHP 5.3.*
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The second parameter in call_user_func_array MUST be an array but only since PHP 5.3 they started to enforce this.
http://us2.php.net/manual/en/function.ca...-array.php

In the plugin_functions.php file, the exec_filter is giving me errors because the $data parameter is a string.

This needs to be address in order for plugins to be compatible when installing GS in boxes that are running PHP 5.3.*

Thanks.
Where is it not an array? I thought we had changed all instances of it...
ccagle8 Wrote:Where is it not an array? I thought we had changed all instances of it...

Chris,

I'm pretty sure I'm using 2.01.

Line 139 in plugin_functions.php:
Code:
call_user_func_array($filter['function'], $data);

$data seems to not be an array.

Thanks!
good catch. I've fixed this in the SVN for the next release. Thanks
ccagle8 Wrote:good catch. I've fixed this in the SVN for the next release. Thanks


Cool.. no problem!!
Chris,

I have seen in the SVN you edited line 135, but I think line 139 should also be changed, to:

Code:
$data = call_user_func_array($filter['function'], array($data)) ;
got it. Thanks