久久久久av_欧美日韩一区二区在线_国产精品三区四区_日韩中字在线

Discuz! 官方交流社區

標題: PHP message: PHP Warning: Declaration of table_forum_post::update [打印本頁]

作者: aabababba    時間: 2024-3-19 13:00
標題: PHP message: PHP Warning: Declaration of table_forum_post::update
[error] 3573#0: *894031 FastCGI sent in stderr: "PHP message: PHP Warning:  Declaration of table_forum_post::update($tableid, $pid, $data, $unbuffered = false, $low_priority = false, $first = NULL, $invisible = NULL, $fid = NULL, $status = NULL) should be compatible with discuz_table::update($val, $data, $unbuffered = false, $low_priority = false) in /bbs/source/class/table/table_forum_post.php on line 442PHP message: PHP Warning:  Declaration of table_forum_post::delete($tableid, $pid, $unbuffered = false) should be compatible with discuz_table::delete($val, $unbuffered = false) in /bbs/source/class/table/table_forum_post.php on line 611PHP message: PHP Warning:  Declaration of table_forum_post::insert($tableid, $data, $return_insert_id = false, $replace = false, $silent = false) should be compatible with discuz_table::insert($data, $return_insert_id = false, $replace = false, $silent = false) in /bbs/source/class/table/table_forum_post.php on line 607PHP message: PHP Warning:  Declaration of table_forum_post::fetch($tableid, $pid, $outmsg = true) should be compatible with discuz_table::fetch($id, $force_from_db = false) in /bbs/source/class/table/table_forum_post.php on line 133PHP message: PHP Warning:  Declaration of table_forum_post::fetch_all($tableid, $pids, $outmsg = true) should be compatible with discuz_table::fetch_all($ids, $force_from_db = false) in /bbs/source/class/table/table_forum_post.php on line 177PHP message: PHP Warning:  Declaration of table_forum_post::update_cache($tableid, $id, $idtype, $data, $condition = Array, $glue = 'merge') should be compatible with discuz_table::update_cache($id, $data, $cache_ttl = NULL, $pre_cache_key = NULL) in /bbs/source/class/table/table_forum_post.php on line 495" while reading response header from upstream, client: 51.222.253.20, server: bbs.test.net$, request: "GET /forum.php?mod=rss&fid=71&auth=0 HTTP/1.1", u



table_forum_post::update($tableid, $pid, $data, $unbuffered = false, $low_priority = false, $first = NULL, $invisible = NULL, $fid = NULL, $status = NULL)
discuz_table::update($val, $data, $unbuffered = false, $low_priority = false)
          DB::update(self::get_tablename($tableid), $data, implode(' AND ', $where), $unbuffered, $low_priority)



    delete($tableid, $pid, $unbuffered = false)
discuz_table::delete($val, $unbuffered = false)


table_forum_post::insert($tableid, $data, $return_insert_id = false, $replace = false, $silent = false)
              discuz_table::insert($data, $return_insert_id = false, $replace = false, $silent = false)


table_forum_post::fetch($tableid, $pid, $outmsg = true)
         discuz_table::fetch($id, $force_from_db = false)


table_forum_post::fetch_all($tableid, $pids, $outmsg = true)
      discuz_table::fetch_all($ids, $force_from_db = false)




table_forum_post::update_cache($tableid, $id, $idtype, $data, $condition = Array, $glue = 'merge')
      discuz_table::update_cache($id, $data, $cache_ttl = NULL, $pre_cache_key = NULL)




discuz x3.4
php7.4.5

代碼子類重寫方法的參數和基類不一樣報錯?



作者: 天外飄仙    時間: 2024-3-19 14:38
重寫定義個方法好了,  要不就保持 參數一致
作者: aabababba    時間: 2024-3-19 18:00
天外飄仙 發表于 2024-3-19 14:38
重寫定義個方法好了,  要不就保持 參數一致

保持 參數一致?
不會影響后面的代碼?
作者: 天外飄仙    時間: 2024-3-19 20:32
aabababba 發表于 2024-3-19 18:00
保持 參數一致?
不會影響后面的代碼?

形參 不是必須使用的哦,

你不用就是了




歡迎光臨 Discuz! 官方交流社區 (http://www.9999xn.com/) Powered by Discuz! W1.0