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