How do I set the memory_limit for PHP CLI when using xampp

前端 未结 3 1573
旧巷少年郎
旧巷少年郎 2021-01-05 22:39

I have tried setting the limit in php.ini but I always get the same error:

Allowed memory size of 262144 bytes exhausted (tried to allocate 341351 bytes) in Unknown

3条回答
  •  礼貌的吻别
    2021-01-05 23:17

    The default php.ini file for the CLI in xampp is located in %xamppRoot%\php\php.ini not under %xamppRoot%\apache\bin\php.ini

提交回复
热议问题