PHP错误警告:参数1应该是参考 [英] PHP Error Warning: Parameter 1 expected to be a reference

查看:109
本文介绍了PHP错误警告:参数1应该是参考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对PHP感到熟悉",我的朋友的网站因错误而中断:

I am "familiar" with PHP and my friend had his site broken with error:

Warning: Parameter 1 to Some_function_name() expected to be a reference, 
value given in /.../public_html/includes/tng/tNG.class.php on line 219

第219行:

$ret = call_user_func_array($callBackFunction,$tempParam);

我不确定他的服务器上发生了什么,但是托管公司团队对Joomla和PHP冲突发表了一些看法.我该如何解决?

I am not sure what happened on his server, but hosting company team said something about the Joomla and PHP conflict. How can I fix it?

推荐答案

检查Some_Function_name()的功能签名,您可能会有类似的内容:

Check the function signature of Some_Function_name(), you probably have something like:

function Some_Function_name(&$param1)
{
    // ...

这是一个PHP 5.3兼容性问题.您可以从参数$param1中删除引用运算符&.或者,如果绝对必要,您可以回滚到PHP 5.2.x.

This is a PHP 5.3 compatibility issue. You could remove the reference operator & from the argument $param1. Or you could rollback to PHP 5.2.x if absolutely necessary.

这篇关于PHP错误警告:参数1应该是参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆