mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
linter
This commit is contained in:
parent
e2ea10d2eb
commit
92acb95a58
@ -30,7 +30,7 @@ class swoole_hook_mysql extends Extension
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
putenv('EXTENSION_DIR=' . BUILD_MODULES_PATH);
|
putenv('EXTENSION_DIR=' . BUILD_MODULES_PATH);
|
||||||
[$ret, $out] = shell()->execWithResult(BUILD_ROOT_PATH . '/bin/php -n'. $this->getSharedExtensionLoadString() . ' --ri "swoole"', false);
|
[$ret, $out] = shell()->execWithResult(BUILD_ROOT_PATH . '/bin/php -n' . $this->getSharedExtensionLoadString() . ' --ri "swoole"', false);
|
||||||
$out = implode('', $out);
|
$out = implode('', $out);
|
||||||
if ($ret !== 0) {
|
if ($ret !== 0) {
|
||||||
throw new RuntimeException('extension ' . $this->getName() . ' failed compile check: php-cli returned ' . $ret);
|
throw new RuntimeException('extension ' . $this->getName() . ' failed compile check: php-cli returned ' . $ret);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user