payload_test.phpt 502 B

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