diff options
author | Scott Ullrich <sullrich@gmail.com> | 2011-07-04 19:26:40 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@gmail.com> | 2011-07-04 19:26:40 -0400 |
commit | 88dadca1ba6e7bcedc809aa2f7462b9649545edf (patch) | |
tree | f5ceb3d82b9cd88d04ccec43700889b9f315f044 | |
parent | e9b5f8c7290cf7d8296e8e9f586dfd015c0d4fb7 (diff) | |
download | pfsense-88dadca1ba6e7bcedc809aa2f7462b9649545edf.zip pfsense-88dadca1ba6e7bcedc809aa2f7462b9649545edf.tar.gz |
Copy crash file to crash reporter directory if it exists
-rwxr-xr-x | usr/local/www/crash_reporter.php | 2 |
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..."); |