mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-13 20:05:35 +08:00
fix file_exists check in printing shared extension folder
This commit is contained in:
@@ -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!");
|
||||||
|
|||||||
Reference in New Issue
Block a user