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