Work around infinite memory consumption bug. CRM-17853
authorJulia Longtin <julia.longtin@gmail.com>
Thu, 21 Jan 2016 22:18:33 +0000 (22:18 +0000)
committerJulia Longtin <julia.longtin@gmail.com>
Thu, 21 Jan 2016 22:18:33 +0000 (22:18 +0000)
commita3fab31fe25af28949e9b80b034a75bcdd271083
tree118d02c7f2bfc9e7356d4d10e91f2e1e9b89519a
parent7f6aea27b714cb5befcb615b6f198097cc2e3d90
Work around infinite memory consumption bug. CRM-17853

When handling an Unhandled exception, the default error handler path uses debug_var to handle outputting debug information. When calling debug_var, no print argument is passed. Without a print argument, debug_var uses print_r to dump a passed in variable's contents. This consumes all memory, and leads to a crash (500). passing a different option to debug_var works around the issue.
CRM/Core/Error.php