Jump to content

erro Call-time pass


victormenezes

Recommended Posts

hello 

I'm having problems with my code

this:

 

 

Fatal error: Call-time pass-by-reference has been removed in C:\Program Files\EasyPHP-DevServer-14.1VC9\data\localweb\engine\forum\classes\dle_forum_function.php on line 99

 

this line

 list($t,$p) = $this->stats_count($forum['id'], &$array, true);

I already removed the & but always appear to remove 3 more & I remove the lines only at the end of this error:

 

 

 

Parse error: syntax error, unexpected '?>', expecting function (T_FUNCTION) in C:\Program Files\EasyPHP-DevServer-14.1VC9\data\localweb\engine\forum\classes\dle_forum_function.php on line 273

 

I already removed

one:list($t,$p) = $this->stats_count($forum['id'], &$array, true);
two: $list  = $this->forum_list_build($id, '-1', '', '', &$forums, $optgroup);
three: $return = $this->forum_list_build($main_id, $row['id'], $marker, $return, &$forums, $optgroup);


what should I do?

Link to comment
https://forums.phpfreaks.com/topic/286593-erro-call-time-pass/
Share on other sites

Keep removing the &s until they're all gone.

 

You're aware that the function definitions do need to use &s, right? Like

function stats_count($forumID, &$array, $bool) {
 

 

Parse error: syntax error, unexpected '?>', expecting function (T_FUNCTION) in C:\Program Files\EasyPHP-DevServer-14.1VC9\data\localweb\engine\forum\classes\dle_forum_function.php on line 273

That's something completely different. What is the code from lines 250 to 300 (for a start)?
Link to comment
https://forums.phpfreaks.com/topic/286593-erro-call-time-pass/#findComment-1470994
Share on other sites

only goes up to 273

// ********************************************************************************
// access read list
// ********************************************************************************
    function access_read_list ()
    {
        global $forums_array;
        
        $forums = array();
        
        foreach ($forums_array as $forum)
        {
            if ($forum['access_read'])
            {
                if (check_access($forum['access_read']))
                {
                    $forums[] = $forum['id'];
                }
            }
        }
        
        return $forums;
    }
}

?>
Link to comment
https://forums.phpfreaks.com/topic/286593-erro-call-time-pass/#findComment-1470995
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.