Thinkphp5错误:Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 68 bytes)
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 68 bytes)
1 $users = Db::name(‘users’)->select(); 2 dump($users);
对于大数据量查询结果,其内容超出了memory size,修改代码如下:
1 $users = Db::name(‘users’)->limit(10)->select();
完美解决!!!
看活一分钟公众号,持续订阅,更有精赞内容分享