--TEST-- reading/writing BFILE LOBs --SKIPIF-- --FILE-- read(40); var_dump($r); unlink($fullname); $s = oci_parse($c, "drop table FileTest"); oci_execute($s); $s = oci_parse($c, "drop directory TestDir"); oci_execute($s); echo "Done\n"; ?> --EXPECTF-- Test 1. Check how many rows in the table array(1) { ["NUMROWS"]=> array(1) { [0]=> string(1) "1" } } Test 2 array(3) { ["FILENUM"]=> array(1) { [0]=> string(1) "1" } ["FILEDESC"]=> array(1) { [0]=> string(13) "Description 1" } ["IMAGE"]=> array(1) { [0]=> string(22) "Some text in the bfile" } } Test 3 string(22) "Some text in the bfile" Done