Search code examples
phpsymfony1propel

Unable to run propel:build-model in Symfony 1.4 and PHP 5.3, PHP Fatal error: Allowed Memory Size


I have a Symfony 1.4 project that I am unable to successsfuly run the task:

./symfony propel:build-model

This results in the following error:

PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes) in /plugins/sfPropel15Plugin/lib/vendor/propel-generator/lib/builder/om/PHP5PeerBuilder.php on line 2033

Interestingly, I am able to run the build model class for this project on a machine with PHP 5.2 on it.

I am running this on a VMware Player virtual machine build with PHP 5.3.3 installed. I've tried increasing the memory_limit in the php.ini file to rediculously high amounts but it still bombs.


Solution

  • Ok, yes...I am an idiot.

    I was unaware of the CLI specific .ini file.

    I upped the memory_limit in the /etc/php5/cli/php.ini file and things worked fine.

    Thanks everyone.