--TEST-- reading/writing BFILE LOBs --SKIPIF-- true, 'timesten' => false); // test runs on these DBs require(__DIR__.'/skipif.inc'); ob_start(); phpinfo(INFO_MODULES); $phpinfo = ob_get_clean(); if (preg_match('/Compile-time ORACLE_HOME/', $phpinfo) !== 1) { // Assume building PHP with an ORACLE_HOME means the tested DB is on the same machine as PHP die("skip this test won't work with remote Oracle"); } if (substr(PHP_OS, 0, 3) == 'WIN') die("skip Test script not ported to Windows"); ?> --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"; ?> --EXPECT-- 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