diff options
author | Renato Botelho <renato@netgate.com> | 2015-08-26 14:13:36 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-08-26 14:13:36 -0300 |
commit | 51950f709f4a9599099d637c384ebf0dde22dbb5 (patch) | |
tree | bbf113069081f890d39f0eb42ca5bae6b6964b47 /etc/inc/pfsense-utils.inc | |
parent | 230483ca722dd6c390edf102802db673204cfab5 (diff) | |
parent | 4d9801c2dbd2b3e54a39578ee62b93af66607227 (diff) | |
download | pfsense-51950f709f4a9599099d637c384ebf0dde22dbb5.zip pfsense-51950f709f4a9599099d637c384ebf0dde22dbb5.tar.gz |
Merge branch 'master' into bootstrap
Merge to the commit just before move all files to src/
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 5f8e0dc..2cedc52 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -32,7 +32,7 @@ */ /* - pfSense_BUILDER_BINARIES: /sbin/ifconfig /sbin/pfctl /usr/local/bin/php /usr/bin/netstat + pfSense_BUILDER_BINARIES: /sbin/ifconfig /sbin/pfctl /usr/local/bin/php-cgi /usr/bin/netstat pfSense_BUILDER_BINARIES: /bin/df /usr/bin/grep /usr/bin/awk /bin/rm /usr/sbin/pwd_mkdb /usr/bin/host pfSense_BUILDER_BINARIES: /sbin/kldload pfSense_MODULE: utils @@ -676,7 +676,7 @@ if (!function_exists('php_check_syntax')) { fwrite($fout, $code_to_check); fwrite($fout, "\n\n?>\n"); fclose($fout); - $command = "/usr/local/bin/php -l {$g['tmp_path']}/codetocheck.php"; + $command = "/usr/local/bin/php-cgi -l {$g['tmp_path']}/codetocheck.php"; $output = exec_command($command); if (stristr($output, "Errors parsing") == false) { echo "false\n"; @@ -695,7 +695,7 @@ if (!function_exists('php_check_syntax')) { if (!function_exists('php_check_syntax')) { function php_check_syntax($code_to_check, &$errormessage) { return false; - $command = "/usr/local/bin/php -l " . escapeshellarg($code_to_check); + $command = "/usr/local/bin/php-cgi -l " . escapeshellarg($code_to_check); $output = exec_command($command); if (stristr($output, "Errors parsing") == false) { echo "false\n"; |