1--TEST-- 2oci_lob_write() and friends 3--EXTENSIONS-- 4oci8 5--SKIPIF-- 6<?php 7require_once 'skipifconnectfailure.inc'; 8$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs 9require __DIR__.'/skipif.inc'; 10?> 11--FILE-- 12<?php 13 14require __DIR__.'/connect.inc'; 15require __DIR__.'/create_table.inc'; 16 17$ora_sql = "INSERT INTO 18 ".$schema.$table_name." (id, clob) 19 VALUES (2, empty_clob()) 20 RETURNING 21 clob 22 INTO :v_clob "; 23 24$statement = oci_parse($c,$ora_sql); 25$clob = oci_new_descriptor($c,OCI_D_LOB); 26oci_bind_by_name($statement,":v_clob", $clob,-1,OCI_B_CLOB); 27oci_execute($statement, OCI_DEFAULT); 28 29oci_commit($c); // This will cause subsequent ->write() to fail 30$clob->write("data"); 31 32require __DIR__.'/drop_table.inc'; 33 34echo "Done\n"; 35 36?> 37--EXPECTF-- 38Warning: OCILob::write(): ORA-22990: %s in %s on line 19 39Done 40