1--TEST-- 2Bug #26133 (ocifreedesc() segfault) 3--EXTENSIONS-- 4oci8 5--SKIPIF-- 6<?php 7require_once 'skipifconnectfailure.inc'; 8?> 9--FILE-- 10<?php 11 12require __DIR__.'/connect.inc'; 13 14// Initialize 15 16$stmtarray = array( 17 "drop table bug26133_tab", 18 "create table bug26133_tab (id number, value number)", 19); 20 21oci8_test_sql_execute($c, $stmtarray); 22 23// Run Test 24 25$ora_sql = "INSERT INTO bug26133_tab (id, value) VALUES (1,'1') RETURNING ROWID INTO :v_rowid "; 26 27$statement = oci_parse($c,$ora_sql); 28$rowid = oci_new_descriptor($c,OCI_D_ROWID); 29oci_bind_by_name($statement,":v_rowid", $rowid,-1,OCI_B_ROWID); 30if (oci_execute($statement)) { 31 oci_commit($c); 32} 33oci_free_statement($statement); 34$rowid->free(); 35 36// Cleanup 37 38$stmtarray = array( 39 "drop table bug26133_tab" 40); 41 42oci8_test_sql_execute($c, $stmtarray); 43 44echo "Done\n"; 45?> 46--EXPECT-- 47Done 48