了解php“内存不足";错误 [英] Understanding php "Out of memory" error

查看:94
本文介绍了了解php“内存不足";错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以找到许多有关如何克服内存不足错误的教程.解决方案是:增加php.ini.htaccess中的内存-多么令人惊讶...

I can find lots of tutorials on how to overcome the out-of-memory error. The solution is: To increase the memory in the php.ini or in the .htaccess - what a surprise...

我实际上不理解错误消息:

I actually don't understand the error message:

致命错误:内存不足(已分配32016932)(试图分配25152字节)

Fatal error: Out of memory (allocated 32016932) (tried to allocate 25152 bytes)

已分配32016932" ,表示已分配了32MB的空间-PHP脚本正在使用32MB? 试图分配25152 ,这意味着尝试再分配25KB,但脚本已失败,因为已达到最大(约32MB?)?

"Allocated 32016932", means 32MB have been allocated as in - the PHP script is using 32MB? Tried to allocate 25152, means that another 25KB were tried to be allocated, but the script failed as the maximum (of ~ 32MB?) has been reached?

除了我内存不足"之外,我还能从该错误消息中真正告诉什么?

What can I actually tell from this error message, besides that I'm "out of memory"?

推荐答案

我总是这样解释:

Fatal error: Out of memory ([currently] allocated 32016932) (tried to allocate [additional] 25152 bytes)

但是很好的问题,是否有防弹的解释.

But good Question if there is a bulletproof explanation.

这篇关于了解php“内存不足";错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆