Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
call_user_func_array Problem with PHP 5.3.*
#1
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.
- Julian

My GetSimple Plugins: Simple Image Gallery | TweetMeme reTweet Button
Reply
#2
Where is it not an array? I thought we had changed all instances of it...
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#3
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!
- Julian

My GetSimple Plugins: Simple Image Gallery | TweetMeme reTweet Button
Reply
#4
good catch. I've fixed this in the SVN for the next release. Thanks
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#5
ccagle8 Wrote:good catch. I've fixed this in the SVN for the next release. Thanks


Cool.. no problem!!
- Julian

My GetSimple Plugins: Simple Image Gallery | TweetMeme reTweet Button
Reply
#6
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)) ;
Reply
#7
got it. Thanks
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply




Users browsing this thread: 1 Guest(s)