Annotation of embedaddon/php/ext/sybase_ct/tests/bug30312.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Sybase-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: bug30312.phpt 268581 2008-11-08 13:21:30Z thekid $
        !            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--
        !            26: int(%d)
        !            27: int(%d)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>