|
|
|
|
@ -218,12 +218,12 @@ class Translator extends Preprocessor |
|
|
|
|
$this->error('The `php-config` is not found'); |
|
|
|
|
} |
|
|
|
|
$phpDir = trim($phpDir); |
|
|
|
|
$ext = $this->isMacos() ? '.dylib' : '.so'; |
|
|
|
|
if (!is_file($phpDir . '/lib/libphp' . $ext)) { |
|
|
|
|
$this->error('The `libphp.so` is not found, please run `make` to build it'); |
|
|
|
|
$ext = $this->isMacos() ? 'dylib' : 'so'; |
|
|
|
|
if (!is_file($phpDir . '/lib/libphp.' . $ext)) { |
|
|
|
|
$this->error("The `libphp.{$ext}` is not found, please run `make` to build it"); |
|
|
|
|
} |
|
|
|
|
if (!is_file($this->getPhpxDir() . '/lib/libphpx' . $ext)) { |
|
|
|
|
$this->error('The `libphpx.so` is not found, please run `make` to build it'); |
|
|
|
|
if (!is_file($this->getPhpxDir() . '/lib/libphpx.' . $ext)) { |
|
|
|
|
$this->error("The `libphpx.{$ext}` is not found, please run `make` to build it"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$clangFormatVersion = shell_exec('clang-format --version'); |
|
|
|
|
|