PHP了解内存限制错误 [英] PHP understanding memory limit error

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

问题描述

我收到此错误

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4194304 bytes)

他为什么试图分配4194304(小于他指定的134217728限制)并被用尽?

How come he tried to allocate 4194304 (which is smaller than the limit he specifies 134217728) and is exhausted?

推荐答案

PHP尝试分配额外的 4194304 字节(在您的代码达到134217728的上限之后),但是您的代码也用尽了.)

PHP tried to allocate an extra of 4194304 bytes (after your code reached the upper limit of 134217728) , but your code exhausted that too.)

134217728 是您的代码超出的限制.

134217728 was the limit which your code exceeded.

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

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