4 <?php include "_skipif.inc"; ?>
11 $c = new pq\Connection(PQ_DSN);
12 $t = $c->startTransaction();
14 $lob = $t->createLOB();
15 $lob->write(file_get_contents(__FILE__));
16 var_dump($lob->tell());
18 $lob->seek(0, SEEK_SET);
19 $dat = $lob->read(filesize(__FILE__));
20 var_dump(hash("md5", $dat)==hash_file("md5", __FILE__));
24 $lob = new pq\Lob($t, $lob->oid);
25 var_dump($lob->read(123));
28 $t->unlinkLOB($lob->oid);