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

StackOverflow https://stackoverflow.com/questions/13215744

  •  30-07-2021
  •  | 
  •  

Вопрос

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?

Это было полезно?

Решение

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top