发表时间:2014-09-05来源:网络
前天无意修改了php.ini关于错误输出的设置,今天测试一个CakePHP开发的项目时竟然发现多了几条错误提示,虽然不是致命的但也不能忽视。
错误的描述大概如下:www.zhishiwu.com
Strict Standards: Redefining already defined constructor for class Object in D:/www/hosts/cake/ucake-libs/cake/libs/object.php on line 69
Strict Standards: Assigning the return value of new by reference is deprecated in D:/www/hosts/cake/ucake-libs/cake/libs/object.php on line 94
Strict Standards: Assigning the return value of new by reference is deprecated in D:/www/hosts/cake/ucake-libs/cake/libs/security.php on line 48
Strict Standards: Assigning the return value of new by reference is deprecated in D:/www/hosts/cake/ucake-libs/cake/libs/inflector.php on line 65
Strict Standards: Assigning the return value of new by reference is deprecated in D:/www/hosts/cake/ucake-libs/cake/libs/configure.php on line 89
Strict Standards: Non-static method Configure::getInstance() should not be called statically in D:/www/hosts/cake/ucake-libs/cake/bootstrap.php on line 43
Strict Standards: Non-static method Configure::write() should not be called statically in D:/www/hosts/cake/ucake-libs/cake/bootstrap.php on line 82
Strict Standards: Non-static method Configure::getInstance() should not be called statically in D:/www/hosts/cake/ucake-libs/cake/libs/configure.php on line 108
大概扫了几眼,看到基本上是CakePHP框架的错误,在Google中搜索相关错误信息时发现其它框架也存在这种通病,无耐。。。
只好认真看了看错误的解释,我理解的是:程序没有按照PHP严格规定的模式编写而给的警告。想到这点于是自己又测试了几个以前写的小程序,有的也会出现这个错误。看来以后自己得注意自己的编码规范,不能一味的追求功能…
由于当前项目要进行调试,遂又将php.ini错误输出重新定义为:error_reporting = E_ALL。将E_STRICT去掉了,重启Apache…一切如常…
摘自 joy 's
CI框架连接数据库配置操作以及多数据库操作
asp 简单读取数据表并列出来 ASP如何快速从数据库读取大量数据
C语言关键字及其解释介绍 C语言32个关键字详解
C语言中sizeof是什么意思 c语言里sizeof怎样用法详解
PHP中的魔术方法 :__construct, __destruct , __call, __callStatic,__get, __set, __isset, __unset , __sleep,
将视频设置为Android手机开机动画的教程
PHP中的(++i)前缀自增 和 (i++)后缀自增
最简单的asp登陆界面代码 asp登陆界面源代码详细介绍
常用dos命令及语法
PHP中include和require区别之我见
皓盘云建最新版下载v9.0 安卓版
53.38MB |商务办公
ris云客移动销售系统最新版下载v1.1.25 安卓手机版
42.71M |商务办公
粤语翻译帮app下载v1.1.1 安卓版
60.01MB |生活服务
人生笔记app官方版下载v1.19.4 安卓版
125.88MB |系统工具
萝卜笔记app下载v1.1.6 安卓版
46.29MB |生活服务
贯联商户端app下载v6.1.8 安卓版
12.54MB |商务办公
jotmo笔记app下载v2.30.0 安卓版
50.06MB |系统工具
鑫钜出行共享汽车app下载v1.5.2
44.7M |生活服务
2014-09-05
2022-03-20
2022-03-21
2022-03-24
2014-09-05
2014-09-05
2015-07-05
2014-09-05
2014-09-05
2022-03-21