fix file_exists check in printing shared extension folder

This commit is contained in:
DubbleClick
2025-06-01 13:21:42 +07:00
parent 3bc5ac28be
commit 55b4ba5832

View File

@@ -251,7 +251,7 @@ class BuildPHPCommand extends BuildCommand
if (!empty($shared_extensions)) { if (!empty($shared_extensions)) {
foreach ($shared_extensions as $ext) { foreach ($shared_extensions as $ext) {
$path = FileSystem::convertPath("{$build_root_path}/modules/{$ext}.so"); $path = FileSystem::convertPath("{$build_root_path}/modules/{$ext}.so");
if (file_exists("{$build_root_path}/modules/{$ext}.so")) { if (file_exists(BUILD_MODULES_PATH . "/{$ext}.so")) {
logger()->info("Shared extension [{$ext}] path{$fixed}: {$path}"); logger()->info("Shared extension [{$ext}] path{$fixed}: {$path}");
} else { } else {
logger()->warning("Shared extension [{$ext}] not found, please check!"); logger()->warning("Shared extension [{$ext}] not found, please check!");