DOMDocument PHP Memory Leak

后端 未结 4 1963
长情又很酷
长情又很酷 2020-12-03 08:51

Running PHP 5.3.6 under MAMP on MAC, the memory usage increases every x calls (between 3 and 8) until the script dies from memory exhaustion. How do I fix this?



        
4条回答
  •  南方客
    南方客 (楼主)
    2020-12-03 09:01

    You can try forcing the garbage collector to run with gc_collect_cycles(), but otherwise you're out of luck. PHP doesn't expose much of anything to control its internal memory usage, let alone memory used by a plugin library.

提交回复
热议问题