Merge pull request #779 from crazywhalecc/docs

remove old extension file before building new php version
This commit is contained in:
Marc 2025-06-19 18:45:22 +07:00 committed by GitHub
commit c3b520c3d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -202,6 +202,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);