1--TEST-- 2Sybase-CT bug #30312 (sybase_unbuffered_query calls, with free) 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_row($query); 19 var_dump($array[0]); 20 sybase_free_result($query); 21 22 $query= sybase_unbuffered_query('select datepart(mm, getdate()), datepart(dd, getdate())'); 23 $array= sybase_fetch_row($query); 24 var_dump($array); 25 sybase_free_result($query); 26?> 27--EXPECTF-- 28int(%d) 29array(2) { 30 [0]=> 31 int(%d) 32 [1]=> 33 int(%d) 34} 35