We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d535e4f commit a7184d0Copy full SHA for a7184d0
1 file changed
src/SPC/builder/extension/sqlsrv.php
@@ -33,4 +33,14 @@ public function patchBeforeWindowsConfigure(): bool
33
}
34
return false;
35
36
+
37
+ public function patchBeforeMake(): bool
38
+ {
39
+ $makefile = SOURCE_PATH . '\php-src\Makefile';
40
+ $makeContent = file_get_contents($makefile);
41
+ $makeContent = preg_replace('/^(CFLAGS_(?:PDO_)?SQLSRV=.*?)\s+\/W4\b/m', '$1', $makeContent);
42
+ $makeContent = preg_replace('/^(CFLAGS_(?:PDO_)?SQLSRV=.*?)\s+\/WX\b/m', '$1', $makeContent);
43
+ file_put_contents($makefile, $makeContent);
44
+ return true;
45
+ }
46
0 commit comments