summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-04 04:54:14 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-04 04:54:14 +0000
commit9ba517a2d314be1ca868e709184bbd2e77aa491a (patch)
tree327794fc5c5c7f26519f7d2dd54e448af31db3fd /etc
parent0790a5851d239cd148d23677264760e0ecceba08 (diff)
downloadpfsense-9ba517a2d314be1ca868e709184bbd2e77aa491a.zip
pfsense-9ba517a2d314be1ca868e709184bbd2e77aa491a.tar.gz
Enable php_check_syntax() checking of eval'd scripts and report an error on console if one occurs
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 4342abc..3652d9c 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -155,12 +155,14 @@ function filter_configure() {
if(stristr($file, ".sh") == true) {
mwexec("/usr/local/pkg/pf/" . $file . " start");
} else {
- //if(php_check_syntax($text, $error_message) == false)
+ if(php_check_syntax($text, $error_message) == false)
if($g['booting'] == true)
echo "\t{$file}... ";
eval($text);
if($g['booting'] == true)
echo "done.\n";
+ else
+ echo "Error deteceted in {$file}: {$error_message}\n";
}
}
}
OpenPOWER on IntegriCloud