1--TEST-- 2PDO_Firebird: bug 73087 segfault binding blob parameter 3--SKIPIF-- 4<?php require('skipif.inc'); ?> 5--ENV-- 6LSAN_OPTIONS=detect_leaks=0 7--FILE-- 8<?php 9require 'testdb.inc'; 10 11@$dbh->exec('drop table atable'); 12$dbh->exec('create table atable (id integer not null, content blob sub_type 1 segment size 80)'); 13$S = $dbh->prepare('insert into atable (id, content) values (:id, :content)'); 14for ($I = 1; $I < 10; $I++) { 15 $Params = [ 16 'id' => $I, 17 'content' => base64_encode(random_bytes(10)) 18 ]; 19 foreach ($Params as $Param => $Value) 20 $S->bindValue($Param, $Value); 21 $S->execute(); 22} 23unset($S); 24unset($dbh); 25echo 'OK'; 26?> 27--EXPECT-- 28OK 29