Skip to content

Commit

Permalink
Use System PHP library for the which command
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Nov 5, 2013
1 parent 33db5ab commit 3a71af8
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions horde/lib/Test.php
Expand Up @@ -700,15 +700,10 @@ protected function _checkGcProbability()
*/
public function requiredFileCheck()
{
$output = '';

$php = trim(system('which php'));
if (!$php || !file_exists($php)) {
$output = '<p style="color:orange">Cannot find PHP command-line binary on your system. Syntax checking of configuration files is disabled.</p>';
$php = null;
} else {
$output = '';
}
$php = System::which('php', null);
$output = is_null($php)
? '<p style="color:orange">Cannot find PHP command-line binary on your system. Syntax checking of configuration files is disabled.</p>'
: '';

ksort($this->_fileList);

Expand Down

0 comments on commit 3a71af8

Please sign in to comment.