From 7f9da6478f9e344cc736b06555fa4b0968822ca9 Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Thu, 19 Jun 2025 18:13:00 +0700 Subject: [PATCH] remove old extension file before building new php version --- src/SPC/command/BuildPHPCommand.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SPC/command/BuildPHPCommand.php b/src/SPC/command/BuildPHPCommand.php index e40a7d83..de6a2b52 100644 --- a/src/SPC/command/BuildPHPCommand.php +++ b/src/SPC/command/BuildPHPCommand.php @@ -207,6 +207,8 @@ class BuildPHPCommand extends BuildCommand // add static-php-cli.version to main.c, in order to debug php failure more easily SourcePatcher::patchSPCVersionToPHP($this->getApplication()->getVersion()); + // clean old modules that may conflict with the new php build + FileSystem::removeDir(BUILD_MODULES_PATH); // start to build $builder->buildPHP($rule);