preg_replace_callback 导致内存溢出,求帮助。

浏览:642 发布日期:2018/11/25 分类:求助交流
tp版本:5.0
线上环境:centos 7.5 + apache 2.0 + PHP 7.0

写一个项目,在MAC和window上测试没问题,但放到线上 LAMP 环境就经常出现问题,[Sun Nov 25 07:43:40.880875 2018] [:error] [pid 13889:tid 139870961915648] [client xx:25960] PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 16916402913141340552 bytes) in /data/wwwroot/default/thinkphp/library/think/Loader.php on line 619, referer: http://www.xxx.com/console/index/myself.html报错报的是 /thinkphp/library/think/Loader.php 下的 619行。
这个错误也不是经常出现,如果出现这个错误,那么出现就非常频繁,然后重启APACHE后,就可以坚持一会。不到一个小时,又会大量出现这个问题。

求高手帮忙
最佳答案
评论( 相关
后面还有条评论,点击查看>>