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

前端 未结 2 1087
抹茶落季
抹茶落季 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 14:06

    If it's not the PHP version problem posted already try checking that there's nothing on the machine preventing your from raising this limit.

    How to check whether Suhosin is installed?

    edit (after establishing that Suhosin is installed):

    Config details are here: http://www.hardened-php.net/suhosin/configuration.html I suspect there'll be a file in /etc/php.d/ that you can edit to increase the memory limit bounds. The config variable you need to edit is: suhosin.memory_limit

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题