How do you debug php “Out of Memory” issues?
问题 I've had some issues lately with PHP memory limits lately: Out of memory (allocated 22544384) (tried to allocate 232 bytes) These are quite the nuisance to debug since I'm not left with a lot of info about what caused the issue. Adding a shutdown function has helped register_shutdown_function('shutdown'); then, using error_get_last(); I can obtain information about the last error, in this case, the "Out of memory" fatal error, such as the line number, and the php file name. This is nice and