Out of memory error in symfony

前端 未结 6 1863
心在旅途
心在旅途 2020-12-10 12:18

I\'m currently working on Symfony project (const VERSION =\'2.5.10\') and I am using xampp. PHP version is 5.5.19.

My problem is everytime I run my dev environment I

6条回答
  •  执念已碎
    2020-12-10 12:48

    If the memory limit is only being reached under the Symfony dev environment I would suggest adding the following to web/app_dev.php

    ini_set('memory_limit', '-1');
    

    This way you can continue to test the production with a sensible amount of memory. Modifying the whole environment via php.ini could hide an error down the line.

提交回复
热议问题