1--TEST--
2FB payload server satisfies connection attempt
3--EXTENSIONS--
4pdo_firebird
5sockets
6--XLEAK--
7A bug in firebird causes a memory leak when calling `isc_attach_database()`.
8See https://github.com/FirebirdSQL/firebird/issues/7849
9--FILE--
10<?php
11require_once "payload_server.inc";
12
13$address = run_server(__DIR__ . "/payload_test.data");
14
15// no need to change the credentials; we're running against a fake server
16$dsn = "firebird:dbname=inet://$address/test";
17$username = 'SYSDBA';
18$password = 'masterkey';
19
20new PDO($dsn, $username, $password, [
21    PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
22    PDO::ATTR_AUTOCOMMIT => false,
23]);
24?>
25--EXPECT--
26