1--TEST-- 2Sybase-CT unbuffered query without full fetching 3--SKIPIF-- 4<?php require('skipif.inc'); ?> 5--FILE-- 6<?php 7/* This file is part of PHP test framework for ext/sybase_ct 8 * 9 * $Id$ 10 */ 11 12 require('test.inc'); 13 14 $db= sybase_connect_ex(); 15 var_dump($db); 16 17 // Fetch #1 18 $q= sybase_unbuffered_query('select name from master..systypes', $db); 19 var_dump($q, key(sybase_fetch_assoc($q))); 20 21 // Fetch #2 - without having fetched all rows from previous query 22 $q= sybase_unbuffered_query('select name from master..systypes', $db); 23 var_dump($q, key(sybase_fetch_assoc($q))); 24 25 // Fetch #3 - free first, without having fetched all rows from previous query 26 sybase_free_result($q); 27 $q= sybase_unbuffered_query('select name from master..systypes', $db); 28 var_dump($q, key(sybase_fetch_assoc($q))); 29 30 // Close - without having fetched all rows from previous query 31 sybase_close($db); 32 echo 'CLOSED'; 33?> 34--EXPECTF-- 35resource(%d) of type (sybase-ct link) 36resource(%d) of type (sybase-ct result) 37string(4) "name" 38 39Notice: sybase_unbuffered_query(): Sybase: Called without first fetching all rows from a previous unbuffered query in %s on line %d 40resource(%d) of type (sybase-ct result) 41string(4) "name" 42resource(%d) of type (sybase-ct result) 43string(4) "name" 44CLOSED 45