以上例程在 PHP 5.6 中的输出: Deprecated: Non-static method A::test() should not be called statically, assuming $this from incompatible context in /tmp/test.php on line 8 object(B)#1 (0) { } 以上例程在 PHP 7 中的输出: Deprecated: Non-static method A::test() should not be called ...
方法/步骤 1 安装的时候出现错误Non-static method cls_image::gd_version() should not be called statically in includes\lib_installer.php on line 31进入install/include目录打开文件 找到31行return cls_image::gd_version();修改成$p = new cls_image();return $p->gd_version();还有根目录的include...
1, 打开 xampp/php/php.ini 配置文件, 把 error_reporting = E_ALL | E_STRICT 替换成 error_reporting = E_ALL & ~E_STRICT ,把 display_errors = On 替换成 display_errors = Off ,然后保存,重启服务器,刷新页面。 2,也可打开joomla 文件夹下的 configuration.php, 把error_reporting = "-1" 替换...
php高版本安装ecshop错误解决方法 1、Strict Standards: Non-static method cls_image::gd_version() should not be called statically in F:\xampp\htdocs\ceshi\includes\lib_base.php on line 346 找到\lib_base.php 第 346行 将它注释 //return cls_image::gd_version(); 添加 $p = new cls_image()...
php项目低版本升级高版本的时候,会遇到个错误:[8192]Non-static method app\api\controller\sss::xxx should not be called statically 工具/原料 php 方法/步骤 1 原因:php高版本的语法和低版本有差异造成的,php不做向后兼容,要不就使用低版本要不就修改代码。2 高版本:静态方法里面不能调用非静态方法。
“Strict Standards: Non-static method Foo::bar() should not be called statically, assuming $this from incompatible context” 所以,我们要尽量使用正确的方式来调用非静态方法。 转自鸟哥博客:
Strict Standards: Non-static method cls_image::gd_version() should not be called statically in F:\xampp\htdocs\ceshi\includes\lib_base.php on line 346 解决办法: 按照文件路径,找到 return cls_image::gd_version(); 修改为: $p = new cls_image(); return $p->gd_version(); ...
Strict Standards: Non-static method HttpClient::quickPost() should not be called statically, assuming $this from incompatible context in D:\phpStudy\WWW\cx\apiUtils.php on line 78 广君雨叚 面向对象 10 找到这个方法,确认这个方法是不是静态的方法,应该是调用非静态方法才报的错 围观X号 面向对...
错误提示:Strict Standards: Non-static method cls_image::gd_version() should not be called statically 解决方法:将 return cls_image::gd_version(); 替换为 $p = new cls_image(); return $p->gd_version(); 错误2、变量未通过引用传递
Non-static method 'name' should not be called statically less... (⌘F1) Dynamic class method called as static. 关键运行代码没有报错。就是会提示这个警告。 我看别人代码都不会。不知道为什么我的会。很奇怪。 好心人说 下载插件 Thinkphp6 Support 就可以了。可是我没看到这个插件呀 怎么搜索都没有...