1--TEST-- 2Bug #80783 (PDO ODBC truncates BLOB records at every 256th byte) 3--SKIPIF-- 4<?php 5if (!extension_loaded('pdo_odbc')) die('skip pdo_odbc extension not available'); 6require 'ext/pdo/tests/pdo_test.inc'; 7PDOTest::skip(); 8?> 9--FILE-- 10<?php 11require 'ext/pdo/tests/pdo_test.inc'; 12$db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt'); 13$db->exec("CREATE TABLE bug80783 (name IMAGE)"); 14 15$string = str_repeat("0123456789", 50); 16$db->exec("INSERT INTO bug80783 VALUES('$string')"); 17 18$stmt = $db->prepare("SELECT name FROM bug80783"); 19$stmt->bindColumn(1, $data, PDO::PARAM_LOB); 20$stmt->execute(); 21$stmt->fetch(PDO::FETCH_BOUND); 22 23var_dump($data === bin2hex($string)); 24?> 25--CLEAN-- 26<?php 27require 'ext/pdo/tests/pdo_test.inc'; 28$db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt'); 29$db->exec("DROP TABLE bug80783"); 30?> 31--EXPECT-- 32bool(true) 33