Here's a small tip which I found extremely useful when I came across this type of (loosely) documented crash. The problem is, it is extremely difficult to know at what point it crashed as there is no stack trace as part of it. Likely as well (as in my case), it was in a vendor component (composer, etc.) which was designed for a different version of PHP.
Well, here's the answer. This guide shows how to create a simple script to include in to your program, which will echo out a filename and line for each "tick" that PHP is processing. The last one it gets to before it crashes -- bingo, you know what's causing the problem!
Hope this helps!
Comments
Post a Comment