1--TEST-- 2PDO_Firebird: bug 73087 segfault binding blob parameter 3--SKIPIF-- 4<?php if (!extension_loaded('interbase') || !extension_loaded('pdo_firebird')) die('skip'); ?> 5--FILE-- 6<?php 7require 'testdb.inc'; 8$C = new PDO('firebird:dbname='.$test_base, $user, $password) or die; 9@$C->exec('drop table atable'); 10$C->exec('create table atable (id integer not null, content blob sub_type 1 segment size 80)'); 11$S = $C->prepare('insert into atable (id, content) values (:id, :content)'); 12for ($I = 1; $I < 10; $I++) { 13 $Params = [ 14 'id' => $I, 15 'content' => base64_encode(random_bytes(10)) 16 ]; 17 foreach ($Params as $Param => $Value) 18 $S->bindValue($Param, $Value); 19 $S->execute(); 20} 21unset($S); 22unset($C); 23echo 'OK'; 24?> 25--EXPECT-- 26OK