cakephp 1.1 with php 5.3

发布时间:2022-04-30 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了cakephp 1.1 with php 5.3脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
我刚从PHP 5.1升级到5.3,之前在我的服务器上使用过cakePHP 1.1.自升级(或可能更早,我无法确定),我收到以下错误.任何人都可以解释一下:

DePRecated: Assigning the return value of new by reference is deprecated in /home/vhosts/bbblh.co.uk/httpdocs/cake/dispatcher.PHP on line 157

Deprecated: Assigning the return value of new by reference is deprecated in /home/vhosts/bbblh.co.uk/httpdocs/cake/dispatcher.PHP on line 221

Deprecated: Assigning the return value of new by reference is deprecated in /home/vhosts/bbblh.co.uk/httpdocs/cake/libs/controller/controller.PHP on line 308

Deprecated: Assigning the return value of new by reference is deprecated in /home/vhosts/bbblh.co.uk/httpdocs/cake/libs/controller/controller.PHP on line 347

Deprecated: Assigning the return value of new by reference is deprecated in /home/vhosts/bbblh.co.uk/httpdocs/cake/libs/controller/controller.PHP on line 535

Deprecated: Assigning the return value of new by reference is deprecated in /home/vhosts/bbblh.co.uk/httpdocs/cake/libs/controller/controller.PHP on line 805

Deprecated: Assigning the return value of new by reference is deprecated in /home/vhosts/bbblh.co.uk/httpdocs/cake/libs/controller/component.PHP on line 128

Deprecated: Assigning the return value of new by reference is deprecated in /home/vhosts/bbblh.co.uk/httpdocs/cake/libs/view/view.PHP on line 686

Deprecated: Assigning the return value of new by reference is deprecated in /home/vhosts/bbblh.co.uk/httpdocs/cake/libs/class_registry.PHP on line 55

Deprecated: Assigning the return value of new by reference is deprecated in /home/vhosts/bbblh.co.uk/httpdocs/cake/libs/model/connection_manager.PHP on line 84

Deprecated: Assigning the return value of new by reference is deprecated in /home/vhosts/bbblh.co.uk/httpdocs/cake/libs/model/connection_manager.PHP on line 107

解决方法

基本上它说的是:你(在这种情况下)你试图做的是什么仍然可以在这个版本中工作,但可以在未来的PHP版本中删除.

应该将cakePHP升级到更新版本.您还可以禁止警告:

error_reporting(E_ALL & ~E_DEPRECATED);

但这样做的危险在于你忘记它并且你的网站在下次升级PHP时没有警告就停止工作.

脚本宝典总结

以上是脚本宝典为你收集整理的cakephp 1.1 with php 5.3全部内容,希望文章能够帮你解决cakephp 1.1 with php 5.3所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:11.13355.3php