飞龙博客

feilong.org

wordpress PHP5 Assigning return value new reference deprecated

feilong.org 修订于2010-03-09 09:58:41 326 次浏览

When installing wordpress2.3.3 in PHP 5.3.0 MySQL 5.1.36 Apache 2.2.11,that is an upgraded php server, I received the following errors:
Deprecated: Assigning the return value of new by reference is deprecated in .... wp-settings.php in line 267
Deprecated: Assigning the return value of new by reference is deprecated in .... wp-theme.php..
Deprecated: Assigning the return value of new by reference is deprecated in .... wp-cache.php..
and so on

A lot of people claim that it can be fixed by simply open these php files and removing & in the line noted above.
Then it's done automatically.the & in the line is a useless code for php5 now!

Here is some reseason below,
PHP 4 introduced basic OOP to PHP, however it had a few key issues which were fixed in PHP 5.
Bear in mind that OOP is a concept which has feature which should be consistent between the many different programming languages which implement it.
In most programming languages, an object can be passed to functions or other objects by reference, not by value.
In other words, rather than passing a new object with the same values, the actual object is passed, meaning changes are kept.

更新网址:https://feilong.org/wordpress-php5-assigning-return-value
最初发布:20100309 09:58:41 feilong.org 于广州

加入收藏夹,查看更方便。

所在分类: wordpress

新作:

旧文:

AI表情 AI音乐 blog money bui 教程 echarts 教程 eclipse 教程 html css 教程 IT趋势 js 教程 json 教程 mysql 教程 nodejs npm 教程 onblog SQLite 教程 tutorials vscode 教程 wap网站 winpe启动盘 wordpress 主机推荐 人工智能 前端开发 博客 名企名网 域名注册 常用软件 建站程序 操作系统 教程 数码 无线上网 日记 电子商务 电脑笔记本 网站 网站优化 网站开发 网站推广 网站策划 网络 虚拟现实 默认