Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/process/PhpExecutableFinder.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | c2387f117808 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
42 if (defined('HHVM_VERSION')) { | 42 if (defined('HHVM_VERSION')) { |
43 return (getenv('PHP_BINARY') ?: PHP_BINARY).$args; | 43 return (getenv('PHP_BINARY') ?: PHP_BINARY).$args; |
44 } | 44 } |
45 | 45 |
46 // PHP_BINARY return the current sapi executable | 46 // PHP_BINARY return the current sapi executable |
47 if (PHP_BINARY && in_array(PHP_SAPI, array('cli', 'cli-server', 'phpdbg')) && is_file(PHP_BINARY)) { | 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)) { |
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 } | |
64 | |
65 if (is_executable($php = PHP_BINDIR.('\\' === DIRECTORY_SEPARATOR ? '\\php.exe' : '/php'))) { | |
66 return $php; | |
63 } | 67 } |
64 | 68 |
65 $dirs = array(PHP_BINDIR); | 69 $dirs = array(PHP_BINDIR); |
66 if ('\\' === DIRECTORY_SEPARATOR) { | 70 if ('\\' === DIRECTORY_SEPARATOR) { |
67 $dirs[] = 'C:\xampp\php\\'; | 71 $dirs[] = 'C:\xampp\php\\'; |