https://disp.cc/b/tails#!546-3zvE
剛剛把程式碼再拿出來試
發現出現錯誤
Strict standards: Non-static method A::testA() should not be called statically
, assuming $this from incompatible context in BALABALA
然後上網google一下錯誤,這好像是error_reporting的等級有包括E_STRICT
可是好像網路有些framework都有用到這個寫法 (CakePHP、XOOPS)
小弟的問題是:
這個寫法是建議不要用,還是可以用?
--
參考網站:
http://www.2cto.com/kf/201112/113053.html
http://blog.timc.idv.tw/posts/php5-3-e_strict/
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.126.68.4
小弟這問題一年前就有了
原文: