fix pdo_sqlsrv

This commit is contained in:
henderkes
2025-05-19 16:30:34 +07:00
parent 5bd53ed714
commit 7ba1948101
2 changed files with 40 additions and 10 deletions

View File

@@ -322,16 +322,6 @@ class Extension
->execWithEnv('make -j' . $this->builder->concurrency)
->execWithEnv('make install');
// copy shared library
$extensionDirFile = (getenv('EXTENSION_DIR') ?: $this->source_dir . '/modules') . '/' . $this->getName() . '.so';
$sourceDirFile = $this->source_dir . '/modules/' . $this->getName() . '.so';
if (file_exists($extensionDirFile)) {
copy($extensionDirFile, BUILD_MODULES_PATH . '/' . $this->getName() . '.so');
} elseif (file_exists($sourceDirFile)) {
copy($sourceDirFile, BUILD_MODULES_PATH . '/' . $this->getName() . '.so');
} else {
throw new RuntimeException('extension ' . $this->getName() . ' built successfully, but into an unexpected location.');
}
// check shared extension with php-cli
if (file_exists(BUILD_BIN_PATH . '/php')) {
$this->runSharedExtensionCheckUnix();