--TEST-- oci_lob_read() tests --EXTENSIONS-- oci8 --SKIPIF-- true, 'timesten' => false); // test runs on these DBs require(__DIR__.'/skipif.inc'); ?> --FILE-- size()); var_dump($blob->write(str_repeat("string.", 1000))); var_dump($blob->size()); oci_commit($c); $select_sql = "SELECT blob FROM ".$schema.$table_name." FOR UPDATE"; $s = oci_parse($c, $select_sql); oci_execute($s, OCI_DEFAULT); var_dump($row = oci_fetch_array($s)); var_dump(oci_lob_read($row[0], 2)); var_dump(oci_lob_eof($row[0])); unset($row[0]->descriptor); var_dump(oci_lob_read($row[0],1)); var_dump(oci_lob_eof($row[0])); require __DIR__.'/drop_table.inc'; echo "Done\n"; ?> --EXPECTF-- int(0) int(7000) int(7000) array(2) { [0]=> object(OCILob)#%d (1) { ["descriptor"]=> resource(%d) of type (oci8 descriptor) } ["BLOB"]=> object(OCILob)#%d (1) { ["descriptor"]=> resource(%d) of type (oci8 descriptor) } } string(2) "st" bool(false) Warning: oci_lob_read(): Unable to find descriptor property in %s on line %d bool(false) Warning: oci_lob_eof(): Unable to find descriptor property in %s on line %d bool(false) Done