mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
oopsie in opcache
This commit is contained in:
parent
1ae27c7b5a
commit
872673655e
@ -26,7 +26,7 @@ class opcache extends Extension
|
|||||||
|
|
||||||
public function runSharedExtensionCheckUnix(): void
|
public function runSharedExtensionCheckUnix(): void
|
||||||
{
|
{
|
||||||
[$ret, $out] = shell()->execWithResult(BUILD_BIN_PATH . '/php -v');
|
[$ret, $out] = shell()->execWithResult(BUILD_BIN_PATH . '/php -n -d "zend_extension=' . BUILD_MODULES_PATH . '/opcache.so" -v');
|
||||||
if ($ret !== 0) {
|
if ($ret !== 0) {
|
||||||
throw new RuntimeException('opcache.so failed to load.');
|
throw new RuntimeException('opcache.so failed to load.');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user