+ $cmd = "$phpath -v";
+ $result = trim(shell_exec($cmd));
+ $passed2 = ( strpos($result, "(cli)") !== false );
+ list($result) = explode("\n", $result);
+ $help = "";
+ if(!$passed2) {
+ $help .= t('PHP executable is not the php cli binary (could be cgi-fgci version)'). EOL;
+ $help .= t('Found PHP version: ')."<tt>$result</tt>";
+ }
+ check_add($checks, t('PHP cli binary'), $passed2, true, $help);
+ }
+
+
+ if($passed2) {