【问题标题】:PHP 7.0 is showing function declaration in codeigniter [duplicate]PHP 7.0 在 codeigniter 中显示函数声明 [重复]
【发布时间】:2017-05-18 05:44:16
【问题描述】:

我使用的是 php 5.6,然后我的代码运行良好,但是当我使用 php7.0 + 时,显示相同的代码

A PHP Error was encountered

Severity: Warning

Message: Declaration of MX_Lang::load($langfile, $lang = '', $return = false, $add_suffix = true, $alt_path = '', $_module = '') should be compatible with CI_Lang::load($langfile = '', $idiom = '', $return = false, $add_suffix = true, $alt_path = '')

Filename: MX/Lang.php

【问题讨论】:

标签: php codeigniter


【解决方案1】:

进行以下更改

third_party\MX\Lang.php
 line=70
 public function load($langfile ='', $lang = '', $return = FALSE, $add_suffix = TRUE, $alt_path = '', $_module = '')

希望它能解决您的问题。

【讨论】:

    猜你喜欢
    • 2012-12-31
    • 1970-01-01
    • 2012-06-11
    • 1970-01-01
    • 2010-12-27
    • 1970-01-01
    • 1970-01-01
    • 2010-11-08
    相关资源
    最近更新 更多