Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/process/PhpExecutableFinder.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 1fec387a4317 |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
15:e200cb7efeb3 | 16:c2387f117808 |
---|---|
47 if (PHP_BINARY && \in_array(PHP_SAPI, array('cli', 'cli-server', 'phpdbg'), true)) { | 47 if (PHP_BINARY && \in_array(PHP_SAPI, array('cli', 'cli-server', 'phpdbg'), true)) { |
48 return PHP_BINARY.$args; | 48 return PHP_BINARY.$args; |
49 } | 49 } |
50 | 50 |
51 if ($php = getenv('PHP_PATH')) { | 51 if ($php = getenv('PHP_PATH')) { |
52 if (!is_executable($php)) { | 52 if (!@is_executable($php)) { |
53 return false; | 53 return false; |
54 } | 54 } |
55 | 55 |
56 return $php; | 56 return $php; |
57 } | 57 } |
58 | 58 |
59 if ($php = getenv('PHP_PEAR_PHP_BIN')) { | 59 if ($php = getenv('PHP_PEAR_PHP_BIN')) { |
60 if (is_executable($php)) { | 60 if (@is_executable($php)) { |
61 return $php; | 61 return $php; |
62 } | 62 } |
63 } | 63 } |
64 | 64 |
65 if (is_executable($php = PHP_BINDIR.('\\' === DIRECTORY_SEPARATOR ? '\\php.exe' : '/php'))) { | 65 if (@is_executable($php = PHP_BINDIR.('\\' === DIRECTORY_SEPARATOR ? '\\php.exe' : '/php'))) { |
66 return $php; | 66 return $php; |
67 } | 67 } |
68 | 68 |
69 $dirs = array(PHP_BINDIR); | 69 $dirs = array(PHP_BINDIR); |
70 if ('\\' === DIRECTORY_SEPARATOR) { | 70 if ('\\' === DIRECTORY_SEPARATOR) { |