1--TEST-- 2Test odbc_cursor() 3--EXTENSIONS-- 4odbc 5--SKIPIF-- 6<?php include 'skipif.inc'; ?> 7--FILE-- 8<?php 9include 'config.inc'; 10 11$conn = odbc_connect($dsn, $user, $pass); 12 13odbc_exec($conn, "CREATE TABLE cursor_table (id INT, whatever TEXT)"); 14odbc_exec($conn, "INSERT INTO cursor_table VALUES (1, 'whatever')"); 15$res = odbc_exec($conn, 'SELECT * FROM cursor_table'); 16 17var_dump(odbc_cursor($res)); 18 19odbc_close($conn); 20?> 21--CLEAN-- 22<?php 23include 'config.inc'; 24 25$conn = odbc_connect($dsn, $user, $pass); 26odbc_exec($conn, "DROP TABLE cursor_table"); 27?> 28--EXPECTF-- 29string(%d) "SQL_CUR%s" 30