致命错误:允许的内存大小268435456字节耗尽(试图分配65488字节)


Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 65488 bytes)

我现在正忙着我的新CMS。我现在可以继续测试我的TPL了;分页系统。现在,唯一的问题是,当我转到http://localhost/时,我得到这个错误:

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 65488 bytes) in C:'xampp'htdocs'application'classes'class.functions.php on line 162

所以通常,我会去Class.functions.php的第162行,看看我是否在循环或其他什么,弄清楚那里到底发生了什么,然后再测试一次。现在,有趣的是,我的class.functions.php只包含92行。:")

有人有这方面的经验吗?

谢谢,

韦斯利。

我不建议您这样做,但请尝试:

ini_set("memory_limit","-1");
相关文章: