ini_set('memory_limit', …) doesn't work and returns false; can't figure out why

前端 未结 2 1082
抹茶落季
抹茶落季 2021-01-05 13:30
ini_set(\'memory_limit\', \'128M\'); // Returns false; memory_limit unchanged

I wasn\'t able to find a list of things that can cause this. So far I

2条回答
  •  再見小時候
    2021-01-05 13:58

    The manual says :

    Prior to PHP 5.2.1, in order to use this directive it had to be enabled at compile time by using --enable-memory-limit in the configure line

    That might be the cause of your problem.

提交回复
热议问题