From 88dadca1ba6e7bcedc809aa2f7462b9649545edf Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 4 Jul 2011 19:26:40 -0400 Subject: [PATCH] Copy crash file to crash reporter directory if it exists --- usr/local/www/crash_reporter.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr/local/www/crash_reporter.php b/usr/local/www/crash_reporter.php index d423568a6e..8b8d58a6f5 100755 --- a/usr/local/www/crash_reporter.php +++ b/usr/local/www/crash_reporter.php @@ -102,6 +102,8 @@ $crash_report_header .= "\nCrash report details:\n"; echo gettext("Processing..."); file_put_contents("/var/crash/crashreport_header.txt", $crash_report_header); exec("/usr/bin/gzip /var/crash/*"); + if(file_exists("/tmp/PHP_errors.log")) + exec("cp /tmp/PHP_errors.log /var/crash/"); $files_to_upload = glob("/var/crash/*"); echo "

"; echo gettext("Uploading...");