【php书写不规范】Notice: Use of undefined constant memory_limit - assumed 'memory_limit' in..

php代码提示
Notice: Use of undefined constant memory_limit - assumed 'memory_limit' in XXXX
原来是书写不规范导致的,原来是下面这样写的
ini_set(memory_limit,-1);

  改为

ini_set('memory_limit',-1);

完成。

posted @ 2021-06-22 11:49  html55  阅读(179)  评论(0编辑  收藏  举报