允许的内存大小为134217728字节已用尽 [英] Allowed memory size of 134217728 bytes exhausted

查看:131
本文介绍了允许的内存大小为134217728字节已用尽的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

热衷于解决这个问题以及它为什么会发生?

Hot to solve this problem and why it happens?

Zend服务器日志:

PHP致命错误:耗尽的134217728字节允许的内存大小 (试图分配538798977字节)在C:\ Program Files中 (x86)\ Zend \ Apache2 \ htdocs \ test \ modules \ main.php在第3行

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 538798977 bytes) in C:\Program Files (x86)\Zend\Apache2\htdocs\test\modules\main.php on line 3

如果直接从浏览器执行文件main.php,则不会产生任何错误.但是,如果我从另一个PHO文件中使用其功能,则Zend Log会显示上述错误.

The file main.php does not produce any error, if it's executed directly from browser. However, if I use its functions from another PHO file, then Zend Log prints the above-mentioned error.

推荐答案

我也遇到了这个问题.

增加以下变量,以使页面执行不会停止:

Increase the following variables so that your page execution will not stop:

  • max_input_time
  • memory_limit
  • max_execution_time
  • max_input_time
  • memory_limit
  • max_execution_time

这篇关于允许的内存大小为134217728字节已用尽的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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