1--TEST--
2Bug #76448 (Stack buffer overflow in firebird_info_cb)
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--SKIPIF--
10<?php if (PHP_INT_SIZE != 8) die("skip 64-bit only"); ?>
11--FILE--
12<?php
13require_once "payload_server.inc";
14
15$address = run_server(__DIR__ . "/bug_76448.data");
16
17// no need to change the credentials; we're running against a falke server
18$dsn = "firebird:dbname=inet://$address/test";
19$username = 'SYSDBA';
20$password = 'masterkey';
21
22$dbh = new PDO($dsn, $username, $password, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);
23var_dump($dbh->getAttribute(PDO::ATTR_SERVER_INFO));
24?>
25--EXPECT--
26bool(false)
27