问题描述
我可以找到许多有关如何克服内存不足错误的教程.解决方案是:增加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" ,表示已分配了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“内存不足";错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!