Skip to content

Commit c343409

Browse files
committed
Install 32bit Firebird server on x86
php_pdo_firebird.dll depends on fbclient.dll, which is shipped with the server. However, a 64bit Firebird server ships a 64bit fbclient.dll, which is not compatible with a 32bit php_pdo_firebird.dll. Closes GH-16223.
1 parent d49c92f commit c343409

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/scripts/windows/test_task.bat

+6-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,12 @@ set ODBC_TEST_DSN=Driver={ODBC Driver 17 for SQL Server};Server=^(local^)\SQLEXP
5252
set PDOTEST_DSN=odbc:%ODBC_TEST_DSN%
5353

5454
rem setup Firebird related exts
55-
curl -sLo Firebird.zip https://github.com/FirebirdSQL/firebird/releases/download/v3.0.9/Firebird-3.0.9.33560-0_x64.zip
55+
if "%PLATFORM%" == "x64" (
56+
set PHP_FIREBIRD_DOWNLOAD_URL=https://github.com/FirebirdSQL/firebird/releases/download/v3.0.9/Firebird-3.0.9.33560-0_x64.zip
57+
) else (
58+
set PHP_FIREBIRD_DOWNLOAD_URL=https://github.com/FirebirdSQL/firebird/releases/download/v3.0.9/Firebird-3.0.9.33560-0_Win32.zip
59+
)
60+
curl -sLo Firebird.zip %PHP_FIREBIRD_DOWNLOAD_URL%
5661
7z x -oC:\Firebird Firebird.zip
5762
set PDO_FIREBIRD_TEST_DATABASE=C:\test.fdb
5863
set PDO_FIREBIRD_TEST_DSN=firebird:dbname=%PDO_FIREBIRD_TEST_DATABASE%

0 commit comments

Comments
 (0)