让我们一起爱米兰
站内搜搜:
移动设备
请扫描二维码
或访问
m.milan100.com
您所在的位置 -> 米兰百分百 -> CakePhp -> CakePHP: Assigning The Return Value of New By Refe

CakePHP: Assigning The Return Value of New By Refe

点击数:1184 发表时间:2010-07-05 17:12:24 作者: 来源链接:
分享到:
分享到微信

A few web applications has been returning this “Assigning the return value of new by reference is Deprecated” message after I’ve upgraded my local web server to run PHP 5.3. Don’t be surprise if your CakePHP 1.2 app suddenly shows this message. The fact lies in that php 5.3 included a few changes and some scripts are not written to be php 5.3 compatible yet.

Here’s a tip for CakePHP 1.2 developers, in order to get rid of that annoying message from your app, you can edit cake/libs/configure.php so that the line

error_reporting(E_ALL)

now reads

error_reporting(E_ALL & ~E_DEPRECATED)

Alternatively, you can also download the new CakePHP 1.3 Dev package as compatibility changes have been added for PHP 5.3. If you decide to do that, consider that there are changes from 1.2 to 1.3 as well and you might need some time getting your app running properly in 1.3 (for more info 1.2 to 1.3 migration guide)

0
很 好
0
一 般
0
差 劲
热门新闻
相关文章
上一篇: CakePHP必须知道的21条技巧
下一篇:
评论区
匿名

返回首页 | 收藏本页 | 回到顶部
Copyright 2010. 米兰百分百 Powered By Bridge.
京ICP备15050557号