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=0to the apache envvars file 这篇关于带有simple_html_dom的zend_mm_heap错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!