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

1.1       misho       1: --TEST--
                      2: Sybase-CT connection-based server message handler
                      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:   $db= sybase_connect_ex();
                     15:   var_dump($db);
                     16:   var_dump(sybase_set_message_handler('sybase_msg_handler', $db));
                     17:   var_dump(sybase_select_ex($db, 'select getdate(NULL)'));
                     18:   sybase_close($db);
                     19: ?>
                     20: --EXPECTF--
                     21: resource(%d) of type (sybase-ct link)
                     22: bool(true)
                     23: >>> Query: select getdate(NULL)
                     24: *** Caught Sybase Server Message #%d [Severity %d, state %d] at line %d
                     25:     %s
                     26: <<< Return: boolean
                     27: bool(false)

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