laravel ICO容器相互注入造成的php内存溢出错误

报错信息如下

 PHP message: PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /vendor/laravel/framework/src/Illuminate/Container/Container.php on line 864
172.19.0.7 -  02/Dec/2020:08:12:42 +0000 "GET /index.php" 500
NOTICE: PHP message: PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php on line 129

排查之后发现是laravel ICO容器相互注入造成的php内存溢出。在service文件中引入manager造成的相互注入

 

已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页