1--TEST-- 2Sybase-CT bug #30312 (sybase_unbuffered_query calls) 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 error_reporting(error_reporting() & !E_NOTICE); // Suppress notices 14 15 $db= sybase_connect_ex(); 16 17 $query= sybase_unbuffered_query('select datepart(yy, getdate())'); 18 $array= sybase_fetch_array($query); 19 var_dump($array[0]); 20 21 $query= sybase_unbuffered_query('select datepart(yy, getdate())'); 22 $array= sybase_fetch_array($query); 23 var_dump($array[0]); 24?> 25--EXPECTF-- 26int(%d) 27int(%d) 28