Skip to content

Commit 60073ba

Browse files
committed
Presave fb_version_str (for debugging)
1 parent 1480060 commit 60073ba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/interbase.inc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ function cleanup_db()
3232

3333
function get_fb_version(): float
3434
{
35-
global $host, $user, $password, $fb_version;
35+
global $host, $user, $password, $fb_version, $fb_version_str;
3636

3737
if(isset($fb_version)) return $fb_version;
3838

3939
if($se = ibase_service_attach($host ? $host : "localhost", $user, $password)) {
40-
$info = ibase_server_info($se, IBASE_SVC_SERVER_VERSION);
41-
if($info === false)die("skip cannot ibase_server_info()");
42-
$server_version = explode(" ", $info);
40+
$fb_version_str = ibase_server_info($se, IBASE_SVC_SERVER_VERSION);
41+
if($fb_version_str === false)die("skip cannot ibase_server_info()");
42+
$server_version = explode(" ", $fb_version_str);
4343
$vers = (float)$server_version[count($server_version) - 1];
4444
return $fb_version = $vers;
4545
} else {

0 commit comments

Comments
 (0)