Symfony 1.4:PHP 致命错误:允许的 33554432 字节内存大小已用完 [英] Symfony 1.4: PHP Fatal error: Allowed memory size of 33554432 bytes exhausted

查看:49
本文介绍了Symfony 1.4:PHP 致命错误:允许的 33554432 字节内存大小已用完的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过运行以下命令来重建 symfony 1.4 数据库:

I am trying to rebuild a symfony 1.4 database by running the following command:

./symfony propel:build-sql

当我运行命令时,出现以下错误:

When I run the command, I get the following error:

PHP 致命错误:允许的 33554432 字节的内存大小已用完(试图分配 89 个字节)在/lib/vendor/symfony/symfony-1.4.19/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/classes/propel/engine/database/model/Table.php在线 554

PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 89 bytes) in /lib/vendor/symfony/symfony-1.4.19/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/classes/propel/engine/database/model/Table.php on line 554

我检查了/etc/php5/cli/php.ini 中的 my memory_limit 配置

I checked my memory_limit configuration in /etc/php5/cli/php.ini

该行如下:

memory_limit = -1

其中没有指定对内存的限制,所以我不明白是什么导致了错误,因为对内存没有限制.什么可能导致这种情况?

Which specifies no limit on memory, so I don't understand what is causing the error, as there is no restriction on memory. What could be causing this?

推荐答案

您是否尝试将 memory_limit 设置为1024M"之类的内容?

Have you tried setting the memory_limit to something like "1024M"?

这篇关于Symfony 1.4:PHP 致命错误:允许的 33554432 字节内存大小已用完的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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