mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 11:33:17 +00:00
Fix php detection
This commit is contained in:
@@ -67,11 +67,11 @@ class task_Scheduler
|
||||
$php = $this->dependencyContainer['phraseanet.configuration']['binaries']['php_binary'];
|
||||
} else {
|
||||
$finder = new ExecutableFinder();
|
||||
$php = $finder->find($php);
|
||||
$php = $finder->find('php');
|
||||
}
|
||||
|
||||
if ( ! is_executable($php)) {
|
||||
throw new \RuntimeException('PHP cli is not provided in registry');
|
||||
throw new \RuntimeException('PHP cli is not provided in binary configuration');
|
||||
}
|
||||
|
||||
$this->method = self::METHOD_PROC_OPEN;
|
||||
|
Reference in New Issue
Block a user