Annotation of embedaddon/php/ext/sybase_ct/tests/bug30312-withfree.phpt, revision 1.1.1.2
1.1 misho 1: --TEST--
2: Sybase-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: *
1.1.1.2 ! misho 9: * $Id$
1.1 misho 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--
28: int(%d)
29: array(2) {
30: [0]=>
31: int(%d)
32: [1]=>
33: int(%d)
34: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>