【php书写不规范】Notice: Use of undefined constant memory_limit

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

  改为

ini_set('memory_limit',-1);

完成。

原文地址:https://www.cnblogs.com/html55/p/14917905.html