mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Test Firebird in 32-bit Linux CI (#17045)
Co-authored-by: =?UTF-8?q?=E6=AD=A6=E7=94=B0=20=E6=86=B2=E5=A4=AA=E9=83=8E?= <takeda@youmind.jp> Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
This commit is contained in:
parent
2b80b2e5ec
commit
912b13a779
7 changed files with 19 additions and 3 deletions
1
.github/actions/apt-x32/action.yml
vendored
1
.github/actions/apt-x32/action.yml
vendored
|
@ -38,6 +38,7 @@ runs:
|
||||||
libxml2-dev:i386 \
|
libxml2-dev:i386 \
|
||||||
libxpm-dev:i386 \
|
libxpm-dev:i386 \
|
||||||
libxslt1-dev:i386 \
|
libxslt1-dev:i386 \
|
||||||
|
firebird-dev:i386 \
|
||||||
locales \
|
locales \
|
||||||
make \
|
make \
|
||||||
pkg-config:i386 \
|
pkg-config:i386 \
|
||||||
|
|
1
.github/actions/configure-x32/action.yml
vendored
1
.github/actions/configure-x32/action.yml
vendored
|
@ -27,6 +27,7 @@ runs:
|
||||||
--with-pgsql \
|
--with-pgsql \
|
||||||
--with-pdo-pgsql \
|
--with-pdo-pgsql \
|
||||||
--with-pdo-sqlite \
|
--with-pdo-sqlite \
|
||||||
|
--with-pdo-firebird \
|
||||||
--without-pear \
|
--without-pear \
|
||||||
--enable-gd \
|
--enable-gd \
|
||||||
--with-jpeg \
|
--with-jpeg \
|
||||||
|
|
4
.github/actions/test-linux/action.yml
vendored
4
.github/actions/test-linux/action.yml
vendored
|
@ -30,7 +30,9 @@ runs:
|
||||||
export PDO_PGSQL_TEST_DSN="pgsql:host=localhost port=5432 dbname=test user=postgres password=postgres"
|
export PDO_PGSQL_TEST_DSN="pgsql:host=localhost port=5432 dbname=test user=postgres password=postgres"
|
||||||
fi
|
fi
|
||||||
export PDO_FIREBIRD_TEST_DATABASE=test.fdb
|
export PDO_FIREBIRD_TEST_DATABASE=test.fdb
|
||||||
export PDO_FIREBIRD_TEST_DSN=firebird:dbname=localhost:test.fdb
|
if [[ -z "$PDO_FIREBIRD_TEST_DSN" ]]; then
|
||||||
|
export PDO_FIREBIRD_TEST_DSN=firebird:dbname=localhost:test.fdb
|
||||||
|
fi
|
||||||
export PDO_FIREBIRD_TEST_PASS=test
|
export PDO_FIREBIRD_TEST_PASS=test
|
||||||
export PDO_FIREBIRD_TEST_USER=test
|
export PDO_FIREBIRD_TEST_USER=test
|
||||||
export ODBC_TEST_USER="odbc_test"
|
export ODBC_TEST_USER="odbc_test"
|
||||||
|
|
10
.github/workflows/push.yml
vendored
10
.github/workflows/push.yml
vendored
|
@ -147,6 +147,7 @@ jobs:
|
||||||
MYSQL_TEST_HOST: mysql
|
MYSQL_TEST_HOST: mysql
|
||||||
PDO_MYSQL_TEST_DSN: mysql:host=mysql;dbname=test
|
PDO_MYSQL_TEST_DSN: mysql:host=mysql;dbname=test
|
||||||
PDO_MYSQL_TEST_HOST: mysql
|
PDO_MYSQL_TEST_HOST: mysql
|
||||||
|
PDO_FIREBIRD_TEST_DSN: firebird:dbname=firebird:test.fdb
|
||||||
services:
|
services:
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql:8.3
|
image: mysql:8.3
|
||||||
|
@ -155,6 +156,15 @@ jobs:
|
||||||
env:
|
env:
|
||||||
MYSQL_DATABASE: test
|
MYSQL_DATABASE: test
|
||||||
MYSQL_ROOT_PASSWORD: root
|
MYSQL_ROOT_PASSWORD: root
|
||||||
|
firebird:
|
||||||
|
image: jacobalberty/firebird
|
||||||
|
ports:
|
||||||
|
- 3050:3050
|
||||||
|
env:
|
||||||
|
ISC_PASSWORD: test
|
||||||
|
FIREBIRD_DATABASE: test.fdb
|
||||||
|
FIREBIRD_USER: test
|
||||||
|
FIREBIRD_PASSWORD: test
|
||||||
steps:
|
steps:
|
||||||
- name: git checkout
|
- name: git checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
|
@ -1409,7 +1409,7 @@ static int pdo_firebird_handle_factory(pdo_dbh_t *dbh, zval *driver_options) /*
|
||||||
char errmsg[512];
|
char errmsg[512];
|
||||||
const ISC_STATUS *s = H->isc_status;
|
const ISC_STATUS *s = H->isc_status;
|
||||||
fb_interpret(errmsg, sizeof(errmsg),&s);
|
fb_interpret(errmsg, sizeof(errmsg),&s);
|
||||||
zend_throw_exception_ex(php_pdo_get_exception(), H->isc_status[1], "SQLSTATE[%s] [%ld] %s",
|
zend_throw_exception_ex(php_pdo_get_exception(), H->isc_status[1], "SQLSTATE[%s] [%" PRIiPTR "] %s",
|
||||||
"HY000", H->isc_status[1], errmsg);
|
"HY000", H->isc_status[1], errmsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ $dbh = getDbConnection();
|
||||||
|
|
||||||
$dbh->exec('
|
$dbh->exec('
|
||||||
recreate table t_bug_15604 (
|
recreate table t_bug_15604 (
|
||||||
id bigint not null,
|
id int not null,
|
||||||
a int not null,
|
a int not null,
|
||||||
b int,
|
b int,
|
||||||
constraint pk_bug_15604 primary key(id)
|
constraint pk_bug_15604 primary key(id)
|
||||||
|
|
|
@ -6,6 +6,8 @@ sockets
|
||||||
--XLEAK--
|
--XLEAK--
|
||||||
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
|
A bug in firebird causes a memory leak when calling `isc_attach_database()`.
|
||||||
See https://github.com/FirebirdSQL/firebird/issues/7849
|
See https://github.com/FirebirdSQL/firebird/issues/7849
|
||||||
|
--SKIPIF--
|
||||||
|
<?php if (PHP_INT_SIZE != 8) die("skip 64-bit only"); ?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
require_once "payload_server.inc";
|
require_once "payload_server.inc";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue