Add separated patchedBeforeWindowsConfigure

This commit is contained in:
crazywhalecc
2025-08-01 01:28:56 +08:00
parent e1c9240698
commit 07d66ade85
5 changed files with 22 additions and 5 deletions

View File

@@ -20,9 +20,6 @@ class bz2 extends Extension
*/
public function patchBeforeConfigure(): bool
{
if (!is_unix()) {
return false;
}
$frameworks = $this->builder instanceof MacOSBuilder ? ' ' . $this->builder->getFrameworks(true) . ' ' : '';
FileSystem::replaceFileRegex(SOURCE_PATH . '/php-src/configure', '/-lbz2/', $this->getLibFilesString() . $frameworks);
return true;

View File

@@ -24,7 +24,7 @@ class sqlsrv extends Extension
return false;
}
public function patchBeforeConfigure(): bool
public function patchBeforeWindowsConfigure(): bool
{
if ($this->pdo_sqlsrv_patched) {
// revert pdo_sqlsrv patch