revert macos mistake

This commit is contained in:
DubbleClick 2025-07-25 16:26:02 +07:00
parent af63723794
commit ed3a78b56d

View File

@ -134,7 +134,8 @@ abstract class UnixBuilderBase extends BuilderBase
FileSystem::removeFileIfExists(BUILD_LIB_PATH . '/libphp.a');
} else {
$ext_path = '';
foreach (glob(BUILD_LIB_PATH . '/libphp*.so') as $file) {
$suffix = PHP_OS_FAMILY === 'Darwin' ? 'dylib' : 'so';
foreach (glob(BUILD_LIB_PATH . "/libphp*.{$suffix}") as $file) {
unlink($file);
}
}