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

返回列表 發帖
查看: 1281|回復: 3

[求助] PHP message: PHP Warning: Declaration of table_forum_post::update

4

主題

15

回帖

40

積分

初學乍練

貢獻
0 點
金幣
3 個
樓主
發表于 2024-3-19 13:00:01 | 只看樓主 |倒序瀏覽 |閱讀模式
[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

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


我知道答案 回答被采納將會獲得1 貢獻 已有3人回答
回復

使用道具 舉報

14

主題

3413

回帖

5827

積分

應用開發者

貢獻
408 點
金幣
170 個
QQ
沙發
發表于 2024-3-19 14:38:28 | 只看Ta
重寫定義個方法好了,  要不就保持 參數一致
回復

使用道具 舉報

4

主題

15

回帖

40

積分

初學乍練

貢獻
0 點
金幣
3 個
板凳
 樓主| 發表于 2024-3-19 18:00:15 | 只看Ta
天外飄仙 發表于 2024-3-19 14:38
重寫定義個方法好了,  要不就保持 參數一致

保持 參數一致?
不會影響后面的代碼?
回復

使用道具 舉報

14

主題

3413

回帖

5827

積分

應用開發者

貢獻
408 點
金幣
170 個
QQ
地板
發表于 2024-3-19 20:32:23 | 只看Ta
aabababba 發表于 2024-3-19 18:00
保持 參數一致?
不會影響后面的代碼?

形參 不是必須使用的哦,

你不用就是了
回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

  • 關注公眾號
  • 有償服務微信
  • 有償服務QQ

手機版|小黑屋|Discuz! 官方交流社區 ( 皖ICP備16010102號 |皖公網安備34010302002376號 )|網站地圖|star

GMT+8, 2025-9-19 09:43 , Processed in 0.064287 second(s), 30 queries .

Powered by Discuz! W1.0 Licensed

Copyright © 2001-2025 Discuz! Team.

關燈 在本版發帖
有償服務QQ
有償服務微信
返回頂部
快速回復 返回頂部 返回列表