--TEST-- scrollable results with no rows. --DESCRIPTION-- this test is very similar to test_scrollable.phpt... might consider removing this test as a duplicate --SKIPIF-- --FILE-- 'static'); $stmt = sqlsrv_query($conn, $query, array(), $options); $rows = sqlsrv_has_rows($stmt); if ($rows != false) { fatalError("Should be no rows present"); }; if ($stmt === false) { die(print_r(sqlsrv_errors(), true)); } $row = sqlsrv_fetch_array($stmt); print_r($row); if ($row === false) { print_r(sqlsrv_errors(), true); } $stmt = sqlsrv_query($conn, $query); $rows = sqlsrv_has_rows($stmt); if ($rows != false) { fatalError("Should be no rows present"); }; if ($stmt === false) { die(print_r(sqlsrv_errors(), true)); } $row = sqlsrv_fetch_array($stmt); print_r($row); if ($row === false) { print_r(sqlsrv_errors(), true); } dropTable($conn, $tableName); echo "Test succeeded.\n"; ?> --EXPECT-- Test succeeded.