arnaud-lb / php-memory-profiler

Memory profiler for PHP. Helps finding memory leaks in PHP scripts.
MIT License
858 stars 51 forks source link

Handle xdebug conflict on dump_on_limit feature #68

Closed arnaud-lb closed 2 years ago

arnaud-lb commented 2 years ago

xdebug overrides zend_error_cb after memprof, which removes our ability to see OOMs.

Here we try to override zend_error_cb as late as possible, so that xdebug doesn't conflicts anymore.