--TEST-- PDO_Firebird: persistent connect test --EXTENSIONS-- pdo_firebird --SKIPIF-- --XLEAK-- A bug in firebird causes a memory leak when calling `isc_attach_database()`. See https://github.com/FirebirdSQL/firebird/issues/7849 --FILE-- true, ], ); $stmt = $dbh->query('SELECT CURRENT_CONNECTION FROM RDB$DATABASE'); $connId = $stmt->fetchColumn(); $connIds[] = $connId; echo "{$times} connection ID: {$connId}\n"; unset($dbh); unset($stmt); unset($connID); } echo $connIds[0] === $connIds[1] ? "Same ID.\n" : "Different ID\n"; ?> --EXPECTF-- First connection ID: %d Second connection ID: %d Same ID.