Quote:
Fatal error: Only variables can be passed by reference in C:\wwwroot\hosted\aov\modules\clan\module_clan.php on line 295
I just upgraded my PHP to 5.0.5 and now I started getting this on my phpBB boards and etc...
It seems that I cannot like..trim a variable when feeding it to a function.. (example)
cannot do wrote:
submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), $message, str_replace("\'", "''", $poll_title), $poll_options, $poll_length);
what I have to do wrote:
$message = str_replace("\'", "''",addslashes($message));
$poll_title = str_replace("\'", "''", $poll_title);
$username = str_replace("\'", "''", $username);
$subject = str_replace("\'", "''", $subject);
submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, $username, $subject, $message, $poll_title, $poll_options, $poll_length);
o.O why..... is this happning????
Why isn't it allowed anymore.... is there a way aroudn this?