为什么内存不够用?

浏览:1204 发布日期:2013/07/12 分类:求助交流
:(
Allowed memory size of 8388608 bytes exhausted (tried to allocate 40961 bytes) F:\wamp\www\deploy\toux\ThinkPHP\Common\common.php 第 601 行.
错误位置

FILE: F:\wamp\www\deploy\toux\ThinkPHP\Lib\Core\Think.class.php  LINE: 243
TRACE

[13-07-12 09:54:07] F:\wamp\www\deploy\toux\ThinkPHP\Lib\Core\Think.class.php (243) halt(Allowed memory size of 8388608 bytes exhausted (tried to allocate 40961 bytes) F:\wamp\www\deploy\toux\ThinkPHP\Common\common.php 第 601 行.)
[13-07-12 09:54:07] F:\wamp\www\deploy\toux\ThinkPHP\Lib\Core\Think.class.php (258) Think::appError(1, Allowed memory size of 8388608 bytes exhausted (tried to allocate 40961 bytes), F:\wamp\www\deploy\toux\ThinkPHP\Common\common.php, 601)
[13-07-12 09:54:07] () Think::fatalError()


public function zhuan(&$listArray)
在另一个函数,循环调用50次函数没问题,如果循环调用到100次就出现上面提示。
for ($j=0; $j < 100; $j++) { //要重复的次数,为50时可以,100次就不行了,
$this->zhuan($listArray);
}
调用一次zhuan($listArray); 里面的内存该释放的,第二次调用,也不应该增加内存啊。。。
最佳答案
评论( 相关
后面还有条评论,点击查看>>