remove old extension file before building new php version

This commit is contained in:
DubbleClick 2025-06-19 18:13:00 +07:00
parent 056971fcbc
commit 7f9da6478f

View File

@ -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);