--TEST-- oci_lob_load() --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(strlen($row[0]->load())); var_dump(strlen(oci_lob_load($row[0]))); var_dump(oci_lob_load()); unset($row[0]->descriptor); var_dump(oci_lob_load($row[0])); require __DIR__.'/drop_table.inc'; echo "Done\n"; ?> --EXPECTF-- object(OCI-Lob)#%d (1) { ["descriptor"]=> resource(%d) of type (oci8 descriptor) } int(0) int(7000) int(7000) array(2) { [0]=> object(OCI-Lob)#%d (1) { ["descriptor"]=> resource(%d) of type (oci8 descriptor) } ["BLOB"]=> object(OCI-Lob)#%d (1) { ["descriptor"]=> resource(%d) of type (oci8 descriptor) } } int(7000) int(7000) Warning: oci_lob_load() expects exactly 1 parameter, 0 given in %s on line %d NULL Warning: oci_lob_load(): Unable to find descriptor property in %s on line %d bool(false) Done