dis-bench / src /php /php-src /ext /pdo_firebird /tests /bug_76448.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
612 Bytes
--TEST--
Bug #76448 (Stack buffer overflow in firebird_info_cb)
--EXTENSIONS--
pdo_firebird
sockets
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip 64-bit only"); ?>
--FILE--
<?php
require_once "payload_server.inc";
$address = run_server(__DIR__ . "/bug_76448.data");
// no need to change the credentials; we're running against a falke server
$dsn = "firebird:dbname=inet://$address/test";
$username = 'SYSDBA';
$password = 'masterkey';
$dbh = new PDO($dsn, $username, $password, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);
var_dump($dbh->getAttribute(PDO::ATTR_SERVER_INFO));
?>
--EXPECT--
bool(false)