bug_73087.phpt 669 B

1234567891011121314151617181920212223242526272829
  1. --TEST--
  2. PDO_Firebird: bug 73087 segfault binding blob parameter
  3. --EXTENSIONS--
  4. pdo_firebird
  5. --SKIPIF--
  6. <?php require('skipif.inc'); ?>
  7. --ENV--
  8. LSAN_OPTIONS=detect_leaks=0
  9. --FILE--
  10. <?php
  11. require 'testdb.inc';
  12. $dbh->exec('recreate 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)');
  14. for ($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. }
  23. unset($S);
  24. unset($dbh);
  25. echo 'OK';
  26. ?>
  27. --EXPECT--
  28. OK