严格的标准:在第54行的path\cake\libs\object.php中重新定义已经为Object类定义的构造函数 [英] Strict standards: Redefining already defined constructor for class Object in path\cake\libs\object.php on line 54
问题描述
我正在尝试在cakephp(不是mysql)上配置MS-MSQL数据库。
I am trying to configure MS-MSQL database on cakephp (Not mysql).
我的Wampserver是2.2e-php5.4.3-httpd2.2.22-mysql5。我的笔记本电脑(是Windows x64位)上的5.24-32b。
My Wampserver is 2.2e-php5.4.3-httpd2.2.22-mysql5.5.24-32b on my laptop (which is windows x64-bit.
我已经邀请了这两个dll运行sql server
extension = php_sqlsrv_54_ts.dll
extension = php_pdo_sqlsrv_54_ts.dll
I already invited these two dlls to run sql server
extension=php_sqlsrv_54_ts.dll
extension=php_pdo_sqlsrv_54_ts.dll
我在运行cakephp 1.3时遇到了这两个错误
I've got these two errors in running cakephp 1.3
Strict standards: Redefining already defined constructor for class Object in C:\wamp\www\project\cake\libs\object.php on line 54<br/>
Strict standards: Non-static method Configure::getInstance() should not be called statically in C:\wamp\www\project\cake\bootstrap.php on line 38
我还安装了WampServer2.1e-x32,它没有工作:(
I also install WampServer2.1e-x32 it didn't work :(
任何帮助plz
推荐答案
您正在使用更新的php版本,在php 5.4中,E_STRICT是E_ALL的一部分
you are using newer php version. in php 5.4, E_STRICT is part of E_ALL
在cake 1.3中,打开文件/cake/bootstrap.php并按以下方式更改error_reporting
in cake 1.3, open file /cake/bootstrap.php and change the error_reporting like this
error_reporting(E_ALL& 〜E_STRICT& 〜E_DEPRECATED);
error_reporting(E_ALL & ~E_STRICT & ~E_DEPRECATED);
这篇关于严格的标准:在第54行的path\cake\libs\object.php中重新定义已经为Object类定义的构造函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!