Annotation of embedaddon/php/ext/sybase_ct/tests/test_connection_caching.phpt, revision 1.1.1.2

1.1       misho       1: --TEST--
                      2: Sybase-CT connection caching
                      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: 
                     14:   $db1= sybase_connect_ex();
                     15:   $db2= sybase_connect_ex();
                     16:   $db3= sybase_connect_ex(NULL, NULL, $new= TRUE);
                     17:   var_dump($db1, $db2, $db3, (string)$db1 == (string)$db2, (string)$db2 == (string)$db3);
                     18:   sybase_close($db1);
                     19:   
                     20: ?>
                     21: --EXPECTF--
                     22: resource(%d) of type (sybase-ct link)
                     23: resource(%d) of type (sybase-ct link)
                     24: resource(%d) of type (sybase-ct link)
                     25: bool(true)
                     26: bool(false)

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