--TEST-- reading/writing BFILE LOBs --SKIPIF-- --FILE-- read(40); var_dump($r); unlink($fullname1); unlink($fullname2); unlink($fullname3); $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) "3" } } Test 2 array(3) { ["FILENUM"]=> array(3) { [0]=> string(1) "1" [1]=> string(1) "2" [2]=> string(1) "3" } ["FILEDESC"]=> array(3) { [0]=> string(13) "Description 1" [1]=> string(13) "Description 2" [2]=> string(13) "Description 3" } ["IMAGE"]=> array(3) { [0]=> string(24) "Some text in the bfile 1" [1]=> string(24) "Some text in the bfile 2" [2]=> string(24) "Some text in the bfile 3" } } Test 3 string(24) "Some text in the bfile 1" Done