mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 00:35:41 +08:00
Fix file paths for SQLSRV
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user