吉林市市政建设集团网站,太原网站建设多少钱,公司变更说明函,长垣网站建设今天在写程序的时候使用了别的程序员写的一个Mysql封装类#xff0c;但是执行后php会报错#xff1a;Strict standards: Non-static method Mysql::insert() should not be called statically in关于这个错误的的处理方法是修改类文件#xff0c;将对应报错的“function ins…今天在写程序的时候使用了别的程序员写的一个Mysql封装类但是执行后php会报错Strict standards: Non-static method Mysql::insert() should not be called statically in关于这个错误的的处理方法是修改类文件将对应报错的“function insert()” 修改成“static function insert()”在网上找了一下其他有遇到过这类问题的说法整理了一下最新版本的PHP要求更为严格所以较之之前版本的PHP会有很多兼容问题经常有报错。明显的有以下几点1)类的静态方法前面必须有static修饰。不能直接写public function fName()前面必须加上static否则报错2)类的继承extends子类的方法如果父类也有那么必须参数一致否则也会报错。Strict standards: Declaration of UrlPath::Goods() should be compatible with UrlBase::Goods($rs, $param Array) in