mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 09:55:37 +08:00
Add more exception and log
This commit is contained in:
@@ -303,6 +303,9 @@ class Extension
|
|||||||
|
|
||||||
public function setBuildStatic(): void
|
public function setBuildStatic(): void
|
||||||
{
|
{
|
||||||
|
if (!in_array('static', Config::getExtTarget($this->name))) {
|
||||||
|
throw new WrongUsageException("Extension [{$this->name}] does not support static build !");
|
||||||
|
}
|
||||||
$this->build_static = true;
|
$this->build_static = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -238,8 +238,8 @@ 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}/ext/{$ext}.so");
|
$path = FileSystem::convertPath("{$build_root_path}/lib/{$ext}.so");
|
||||||
logger()->info("Dynamic extension path{$fixed}: {$path}");
|
logger()->info("Shared extension [{$ext}] path{$fixed}: {$path}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user