带有simple_html_dom的zend_mm_heap错误 [英] zend_mm_heap error with simple_html_dom

查看:53
本文介绍了带有simple_html_dom的zend_mm_heap错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 simplehtmldom 解析HTML文件,但出现此错误:

I'm trying to parse an HTML file with simplehtmldom and I'm getting this error:

zend_mm_heap corrupted

在8231行HTML文件上执行大约4秒后,

.这可能是错误还是仅仅是过多的内存使用?

after about 4 seconds of execution on a 8231 lines HTML file. Could this be a bug or just excessive memory usage?

推荐答案

有一个错误会影响大多数PHP5.2和更高版本,并且可以(尽管并不总是一致)会影响可处理大量对象的任何应用程序,尤其是在服务器负载很重的情况下;但确实会在apache日志中留下"zend_mm_heap损坏"消息.

There is a bug that affects most PHP5.2 and above, and can (albeit not always consistently) affect any application that works with large numbers of objects, particularly when the server is heavily loaded; but does leave a "zend_mm_heap corrupted" message in the apache logs.

一种可能的解决方案是添加以下行: 导出USE_ZEND_ALLOC = 0 到apache envvars文件

One possible solution is to add the line: export USE_ZEND_ALLOC=0 to the apache envvars file

这篇关于带有simple_html_dom的zend_mm_heap错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆