From a3fab31fe25af28949e9b80b034a75bcdd271083 Mon Sep 17 00:00:00 2001 From: Julia Longtin Date: Thu, 21 Jan 2016 22:18:33 +0000 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Error.php b/CRM/Core/Error.php index 615606eb10..387ba23999 100644 --- a/CRM/Core/Error.php +++ b/CRM/Core/Error.php @@ -440,7 +440,7 @@ class CRM_Core_Error extends PEAR_ErrorStack { // Case C: Default error handler // log to file - CRM_Core_Error::debug_var('Fatal Error Details', $vars); + CRM_Core_Error::debug_var('Fatal Error Details', $vars, FALSE); CRM_Core_Error::backtrace('backTrace', TRUE); // print to screen -- 2.25.1