summaryrefslogtreecommitdiffstats
path: root/usr/local/www/crash_reporter.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@gmail.com>2011-07-04 19:26:40 -0400
committerScott Ullrich <sullrich@gmail.com>2011-07-04 19:26:40 -0400
commit88dadca1ba6e7bcedc809aa2f7462b9649545edf (patch)
treef5ceb3d82b9cd88d04ccec43700889b9f315f044 /usr/local/www/crash_reporter.php
parente9b5f8c7290cf7d8296e8e9f586dfd015c0d4fb7 (diff)
downloadpfsense-88dadca1ba6e7bcedc809aa2f7462b9649545edf.zip
pfsense-88dadca1ba6e7bcedc809aa2f7462b9649545edf.tar.gz
Copy crash file to crash reporter directory if it exists
Diffstat (limited to 'usr/local/www/crash_reporter.php')
-rwxr-xr-xusr/local/www/crash_reporter.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/crash_reporter.php b/usr/local/www/crash_reporter.php
index d423568..8b8d58a 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 "<p/>";
echo gettext("Uploading...");
OpenPOWER on IntegriCloud