gpt4 book ai didi

cakephp 1.1 与 php 5.3

转载 作者:可可西里 更新时间:2023-11-01 00:27:13 26 4
gpt4 key购买 nike

我刚刚从 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

最佳答案

基本上它说的是:您(在本例中为 cakephp)尝试做的事情在此版本中仍然有效,但可能会在未来的 php 版本中删除。

您应该将 cakephp 升级到更新的版本。您还可以取消警告:

error_reporting(E_ALL & ~E_DEPRECATED);

但这样做的危险在于您会忘记它,并且在您下次升级 php 时您的网站会在没有警告的情况下停止工作。

关于cakephp 1.1 与 php 5.3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3620450/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com