mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
Correct chdir to original dir
This commit is contained in:
parent
ff30e0f99a
commit
4fc081fcc6
@ -284,6 +284,7 @@ class LinuxBuilder extends UnixBuilderBase
|
|||||||
$modulesDir = BUILD_MODULES_PATH;
|
$modulesDir = BUILD_MODULES_PATH;
|
||||||
$libphpSo = "{$libDir}/libphp.so";
|
$libphpSo = "{$libDir}/libphp.so";
|
||||||
$realLibName = 'libphp.so';
|
$realLibName = 'libphp.so';
|
||||||
|
$cwd = getcwd();
|
||||||
|
|
||||||
if (preg_match('/-release\s+(\S+)/', $ldflags, $matches)) {
|
if (preg_match('/-release\s+(\S+)/', $ldflags, $matches)) {
|
||||||
$release = $matches[1];
|
$release = $matches[1];
|
||||||
@ -325,7 +326,7 @@ class LinuxBuilder extends UnixBuilderBase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
chdir(getcwd());
|
chdir($cwd);
|
||||||
}
|
}
|
||||||
|
|
||||||
$target = "{$libDir}/{$realLibName}";
|
$target = "{$libDir}/{$realLibName}";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user