1--TEST-- 2PDO_Firebird: bug 73087 segfault binding blob parameter 3--EXTENSIONS-- 4pdo_firebird 5--SKIPIF-- 6<?php require('skipif.inc'); ?> 7--XLEAK-- 8A bug in firebird causes a memory leak when calling `isc_attach_database()`. 9See https://github.com/FirebirdSQL/firebird/issues/7849 10--FILE-- 11<?php 12require 'testdb.inc'; 13 14$dbh = getDbConnection(); 15$dbh->exec('recreate table test73087 (id integer not null, content blob sub_type 1 segment size 80)'); 16$S = $dbh->prepare('insert into test73087 (id, content) values (:id, :content)'); 17for ($I = 1; $I < 10; $I++) { 18 $Params = [ 19 'id' => $I, 20 'content' => base64_encode(random_bytes(10)) 21 ]; 22 foreach ($Params as $Param => $Value) 23 $S->bindValue($Param, $Value); 24 $S->execute(); 25} 26unset($S); 27unset($dbh); 28echo 'OK'; 29?> 30--CLEAN-- 31<?php 32require 'testdb.inc'; 33$dbh = getDbConnection(); 34@$dbh->exec("DROP TABLE test73087"); 35unset($dbh); 36?> 37--EXPECT-- 38OK 39