Fix file paths for SQLSRV

This commit is contained in:
crazywhalecc
2026-04-04 18:39:28 +08:00
parent 820d77b8b2
commit 0b2b1d51e1
2 changed files with 5 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ class sqlsrv extends Extension
public function patchBeforeMake(): bool
{
$makefile = SOURCE_PATH . '\php-src\Makefile';
$makefile = SOURCE_PATH . '/php-src/Makefile';
$makeContent = file_get_contents($makefile);
$makeContent = preg_replace('/^(CFLAGS_(?:PDO_)?SQLSRV=.*?)\s+\/W4\b/m', '$1', $makeContent);
$makeContent = preg_replace('/^(CFLAGS_(?:PDO_)?SQLSRV=.*?)\s+\/WX\b/m', '$1', $makeContent);