GetSimple Support Forum
call_user_func_array Problem with PHP 5.3.* - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: call_user_func_array Problem with PHP 5.3.* (/showthread.php?tid=602)



call_user_func_array Problem with PHP 5.3.* - juliancc - 2010-03-30

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.call-user-func-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.


call_user_func_array Problem with PHP 5.3.* - ccagle8 - 2010-03-31

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


call_user_func_array Problem with PHP 5.3.* - juliancc - 2010-03-31

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!


call_user_func_array Problem with PHP 5.3.* - ccagle8 - 2010-04-01

good catch. I've fixed this in the SVN for the next release. Thanks


call_user_func_array Problem with PHP 5.3.* - juliancc - 2010-04-01

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


Cool.. no problem!!


call_user_func_array Problem with PHP 5.3.* - Carlos - 2010-04-04

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)) ;



call_user_func_array Problem with PHP 5.3.* - ccagle8 - 2010-04-18

got it. Thanks