问题描述:
:(
Allowed memory size of 1916796928 bytes exhausted (tried to allocate 3086655745 bytes)
错误位置
FILE: /data/xxx/ThinkPHP/Common/functions.php LINE: 370
问题解决:
这个问题貌似不是php函数preg_replace_callback的bug。我的经过一天半的折磨,终于排查到原因了, 我的服务器环境加载了eaccelerator扩展;经过测试,只有在启用eaccelerator这个扩展后有关 preg_replace_callback的代码段就会内存溢出,而注释掉eaccelerator扩展后,P事没有。
eaccelerator的大坑啊!
注释:加速扩展影响的问题