When I want to debug an actual problem such as the core dump you refer to, I run the program under a debugger or at least investigate the core dump with a debugger.
How does one run PHP code under a debugger? And how does one investigate a core dump with a debuger?
Thanks, Wayne