1--TEST-- 2FB payload server satisfies connection attempt 3--SKIPIF-- 4<?php 5if (!extension_loaded('pdo_firebird')) die("skip pdo_firebird extension not available"); 6if (!extension_loaded('sockets')) die("skip sockets extension not available"); 7?> 8--ENV-- 9LSAN_OPTIONS=detect_leaks=0 10--FILE-- 11<?php 12require_once "payload_server.inc"; 13 14$address = run_server(__DIR__ . "/payload_test.data"); 15 16// no need to change the credentials; we're running against a fake server 17$dsn = "firebird:dbname=inet://$address/test"; 18$username = 'SYSDBA'; 19$password = 'masterkey'; 20 21new PDO($dsn, $username, $password, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]); 22?> 23--EXPECT-- 24