From 78fc6ad08df7920e2612022df3cf96fd089a5f6d Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Mon, 7 Oct 2024 12:34:48 +0200 Subject: [PATCH] Fix PDO_Firebird tests for 32bit These tests are failing because the integers are too large to be cast to a PHP int. We fix this by expecting either an int or a string. --- ext/pdo_firebird/tests/bug_15604.phpt | 4 ++-- ext/pdo_firebird/tests/fb4_datatypes.phpt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/pdo_firebird/tests/bug_15604.phpt b/ext/pdo_firebird/tests/bug_15604.phpt index 52ab04d18af69..e8aa04c9ddf54 100644 --- a/ext/pdo_firebird/tests/bug_15604.phpt +++ b/ext/pdo_firebird/tests/bug_15604.phpt @@ -64,11 +64,11 @@ $dbh = getDbConnection(); @$dbh->exec('drop sequence g_bug_15604'); unset($dbh); ?> ---EXPECT-- +--EXPECTF-- bool(false) array(3) { ["ID"]=> - int(2) + %r(int\(2\)|string\(1\) "2")%r ["A"]=> int(2) ["B"]=> diff --git a/ext/pdo_firebird/tests/fb4_datatypes.phpt b/ext/pdo_firebird/tests/fb4_datatypes.phpt index 7acf338be27c9..9056b21c5b565 100644 --- a/ext/pdo_firebird/tests/fb4_datatypes.phpt +++ b/ext/pdo_firebird/tests/fb4_datatypes.phpt @@ -49,7 +49,7 @@ echo "\ndone\n"; ?> --EXPECTF-- { - "I64": 15, + "I64": %r(15|"15")%r, "I128": "15", "N": "123.97", "N2": "123.97",