mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
21 lines
502 B
PHP
21 lines
502 B
PHP
--TEST--
|
|
FB payload server satisfies connection attempt
|
|
--EXTENSIONS--
|
|
pdo_firebird
|
|
sockets
|
|
--ENV--
|
|
LSAN_OPTIONS=detect_leaks=0
|
|
--FILE--
|
|
<?php
|
|
require_once "payload_server.inc";
|
|
|
|
$address = run_server(__DIR__ . "/payload_test.data");
|
|
|
|
// no need to change the credentials; we're running against a fake server
|
|
$dsn = "firebird:dbname=inet://$address/test";
|
|
$username = 'SYSDBA';
|
|
$password = 'masterkey';
|
|
|
|
new PDO($dsn, $username, $password, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);
|
|
?>
|
|
--EXPECT--
|