【问题标题】:Kohana 2 Formo WarningKohana 2 形式警告
【发布时间】:2012-05-29 10:14:06
【问题描述】:

使用 Kohana 2 版本,一切正常。但是今天点击 Koahana 网站却出现这个错误:

An error was detected which prevented the loading of this page. If this problem persists, please contact the website administrator.
panel/modules/formo/libraries/Formo.php [103]:
Call-time pass-by-reference has been deprecated

这 103. 行:

call_user_func('Formo_'.$name.'::load', & $this);

我从未更改过任何文件、目录与为什么会收到此警告?

【问题讨论】:

    标签: php database kohana


    【解决方案1】:

    call_user_func 中的 & 表示通过引用传递变量,但是在 php 5.3 中不推荐在调用函数时这样做(即调用时通过引用传递)。

    删除与号应该对问题进行排序,但是可以通过 call_user_func 声明中的 ref 使其通过。

    请参阅http://php.net/manual/en/language.references.pass.php 了解更多信息。

    【讨论】:

      猜你喜欢
      • 2012-05-25
      • 1970-01-01
      • 1970-01-01
      • 2011-03-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多