【问题标题】:codeigniter 2.1 $this->CI contains $CI variables continuouslycodeigniter 2.1 $this->CI 连续包含 $CI 变量
【发布时间】:2017-02-17 08:11:37
【问题描述】:
$this->CI has $CI ($this->CI->CI)
And $this->CI->CI has $CI ($this->CI->CI->CI)
And $this->CI->CI->CI has $CI ($this->CI->CI->CI->CI)
And $this->CI->CI->CI->CI has $CI ($this->CI->CI->CI->CI->CI)
.....
......

$CI($this->CI->CI)$this->CI 具有相同的键和值(请参见以下屏幕截图)

图片说明

我无法确定$this->CI 有多少$CI

为什么$this->CI 一直有$CI

请告诉我是什么原因,我做错了什么?

【问题讨论】:

  • 当然是致命的EROOR............!!!!基本上 CI Instance 没有任何其他 CI 方法或变量 ....
  • 但是没有出现错误。我担心内存问题。

标签: php codeigniter instance


【解决方案1】:

没有问题。 $CI 和 $this 本质上是相同的内存位置。变量列表反复列出相同的内存结构。内存不足的唯一方法是,如果您继续深入到列表中并且调试器会全部使用它。换句话说,你所看到的是一种幻觉。

【讨论】:

    猜你喜欢
    • 2018-01-06
    • 1970-01-01
    • 2022-12-22
    • 1970-01-01
    • 2021-07-04
    • 2018-07-25
    • 2012-11-20
    • 1970-01-01
    • 2019-08-07
    相关资源
    最近更新 更多