1--TEST-- 2various oci_lob_write() error messages 3--EXTENSIONS-- 4oci8 5--SKIPIF-- 6<?php 7$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs 8require(__DIR__.'/skipif.inc'); 9?> 10--FILE-- 11<?php 12 13require __DIR__.'/connect.inc'; 14require __DIR__.'/create_table.inc'; 15 16$ora_sql = "INSERT INTO 17 ".$schema.$table_name." (id, blob) 18 VALUES (2, empty_blob()) 19 RETURNING 20 blob 21 INTO :v_blob "; 22 23$statement = oci_parse($c,$ora_sql); 24$blob = oci_new_descriptor($c,OCI_D_LOB); 25 26$blob->save(""); 27 28oci_bind_by_name($statement,":v_blob", $blob,-1,OCI_B_BLOB); 29oci_execute($statement, OCI_DEFAULT); 30 31var_dump($blob->save("")); 32var_dump($blob->save("data", 100)); 33 34require __DIR__.'/drop_table.inc'; 35 36echo "Done\n"; 37 38?> 39--EXPECTF-- 40Warning: OCILob::save(): OCI_INVALID_HANDLE in %s on line %d 41bool(true) 42bool(true) 43Done 44