diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-04 04:54:14 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-04 04:54:14 +0000 |
commit | 9ba517a2d314be1ca868e709184bbd2e77aa491a (patch) | |
tree | 327794fc5c5c7f26519f7d2dd54e448af31db3fd /etc/inc | |
parent | 0790a5851d239cd148d23677264760e0ecceba08 (diff) | |
download | pfsense-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/inc')
-rw-r--r-- | etc/inc/filter.inc | 4 |
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"; } } } |