1--TEST-- 2Bug #76450 (SIGSEGV in firebird_stmt_execute) 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--FILE-- 9<?php 10require_once "payload_server.inc"; 11 12$address = run_server(__DIR__ . "/bug_76450.data"); 13 14// no need to change the credentials; we're running against a fake server 15$dsn = "firebird:dbname=inet://$address/test"; 16$username = 'SYSDBA'; 17$password = 'masterkey'; 18 19$dbh = new PDO($dsn, $username, $password, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]); 20$sql = "EXECUTE PROCEDURE test_proc 123"; 21$query = $dbh->prepare($sql); 22try { 23 $query->execute(); 24} catch (Exception $ex) { 25 echo "{$ex->getMessage()}\n"; 26} 27?> 28--EXPECT-- 29SQLSTATE[HY000]: General error 30