Symfony 1.4: PHP Fatal error: Allowed memory size of 33554432 bytes exhausted

只谈情不闲聊 提交于 2020-01-14 05:24:46

问题


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 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

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

The line is as follows:

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?


回答1:


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



来源:https://stackoverflow.com/questions/13215744/symfony-1-4-php-fatal-error-allowed-memory-size-of-33554432-bytes-exhausted

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!