1--TEST--
2Sybase-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 *
9 * $Id$
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--
21resource(%d) of type (sybase-ct link)
22bool(true)
23>>> Query: select getdate(NULL)
24*** Caught Sybase Server Message #%d [Severity %d, state %d] at line %d
25    %s
26<<< Return: boolean
27bool(false)
28