--TEST-- Bind with various WHERE conditions --EXTENSIONS-- oci8 --FILE-- :v order by ename'); oci_bind_by_name( $s, ":v", $v); oci_define_by_name($s, "ENAME", $ename, 20); oci_execute($s); while (oci_fetch($s)) { var_dump($ename); } echo "Test 3\n"; $s = oci_parse($c, 'select ename from bind_query_tab where sal > :v order by ename'); oci_bind_by_name( $s, ":v", $v); $v = 2000; oci_define_by_name($s, "ENAME", $ename, 20); oci_execute($s); while (oci_fetch($s)) { var_dump($ename); } // Clean up $stmtarray = array( "drop table bind_query_tab" ); oci8_test_sql_execute($c, $stmtarray); ?> --EXPECT-- Test 1 array(1) { [0]=> string(6) "MILLER" } Test 2 string(4) "FORD" string(6) "MILLER" Test 3 string(4) "FORD"