fix copy command with BUILD_MODULES_CONSTANT

This commit is contained in:
henderkes
2025-05-15 23:30:07 +07:00
parent 22001792cd
commit b402b735d6
5 changed files with 35 additions and 5 deletions

View File

@@ -24,6 +24,17 @@ class opcache extends Extension
}
}
public function runSharedExtensionCheckUnix(): void
{
[$ret, $out] = shell()->execWithResult(BUILD_BIN_PATH . '/php -v');
if ($ret !== 0) {
throw new RuntimeException('opcache.so failed to load.');
}
if (!str_contains(join($out), 'with Zend OPcache')) {
throw new RuntimeException('opcache.so failed to load.');
}
}
public function patchBeforeBuildconf(): bool
{
if (file_exists(SOURCE_PATH . '/php-src/.opcache_patched')) {