summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-04-09 09:21:49 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-04-09 09:21:49 -0300
commit5fba3e9563b13150d666e639121f92483757f4dc (patch)
tree006e349ff3ce9c2085fa70380bbd3bbe12a22552 /etc
parent5274ecf01c68ea863a96f66a043aee5ad1e6d78a (diff)
parentb3f2f476384d0a0af7fdb72f55f20a1aca0b5172 (diff)
downloadpfsense-5fba3e9563b13150d666e639121f92483757f4dc.zip
pfsense-5fba3e9563b13150d666e639121f92483757f4dc.tar.gz
Merge pull request #1467 from PiBa-NL/php_errorlog
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/config.lib.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/inc/config.lib.inc b/etc/inc/config.lib.inc
index 922f774..81cced6 100644
--- a/etc/inc/config.lib.inc
+++ b/etc/inc/config.lib.inc
@@ -972,8 +972,13 @@ function pfSense_clear_globals() {
$error = error_get_last();
if ($error !== NULL) {
- if ($error['type'] != E_NOTICE) {
+ if ($error['type'] == E_ERROR) {
$errorstr = "PHP ERROR: Type: {$error['type']}, File: {$error['file']}, Line: {$error['line']}, Message: {$error['message']}";
+ print($errorstr);
+ log_error($errorstr);
+ } else
+ if ($error['type'] != E_NOTICE) {
+ $errorstr = "PHP WARNING: Type: {$error['type']}, File: {$error['file']}, Line: {$error['line']}, Message: {$error['message']}";
// XXX: comment out for now, should re-enable post-2.2
//print($errorstr);
//log_error($errorstr);
OpenPOWER on IntegriCloud