2 Bug #36403 (oci_execute no longer supports OCI_DESCRIBE_ONLY)
5 if (!extension_loaded('oci8')) die ("skip no oci8 extension");
6 if (preg_match('/^1[01]\./', oci_client_version()) != 1) {
7 die("skip expected output only valid with Oracle 10g or greater version of client");
13 require(dirname(__FILE__).'/connect.inc');
18 "drop table bug36403_tab",
19 "create table bug36403_tab (c1 number, col2 number, column3 number, col4 number)"
22 oci8_test_sql_execute($c, $stmtarray);
28 $s = oci_parse($c, "select * from bug36403_tab");
29 oci_execute($s, OCI_DESCRIBE_ONLY);
30 for ($i = oci_num_fields($s); $i > 0; $i--) {
31 echo oci_field_name($s, $i) . "\n";
36 // Should generate an error: ORA-24338: statement handle not executed
37 // since the statement handle was only described and not executed
38 $row = oci_fetch_array($s);
43 "drop table bug36403_tab"
46 oci8_test_sql_execute($c, $stmtarray);
59 Warning: oci_fetch_array(): ORA-%r(24338|01002)%r: %sbug36403.php on line %d