1--TEST-- 2Exercise cleanup code when LOB buffering is on 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." (blob) 18 VALUES (empty_blob()) 19 RETURNING 20 blob 21 INTO :v_blob "; 22 23$s = oci_parse($c,$ora_sql); 24$blob = oci_new_descriptor($c,OCI_DTYPE_LOB); 25 26 27oci_bind_by_name($s,":v_blob", $blob,-1,OCI_B_BLOB); 28oci_execute($s, OCI_DEFAULT); 29 30var_dump($blob->write("test")); 31var_dump($blob->setBuffering(true)); 32var_dump($blob->write("test")); 33 34$blob = null; 35 36require __DIR__.'/drop_table.inc'; 37 38echo "Done\n"; 39 40?> 41--EXPECT-- 42int(4) 43bool(true) 44int(4) 45Done 46