summaryrefslogtreecommitdiff
path: root/ext/interbase/tests/ibase_errmsg_001.phpt
blob: e3973ab3f57caf04c2371a72668229a198effe1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
ibase_errmsg(): Basic test
--SKIPIF--
<?php include("skipif.inc"); ?>
--FILE--
<?php

require("interbase.inc");

$x = ibase_connect($test_base);

ibase_query('SELECT Foobar');
var_dump(ibase_errmsg());

ibase_close($x);
var_dump(ibase_errmsg());

?>
--EXPECTF--
Warning: ibase_query(): Dynamic SQL Error SQL error code = -104 Unexpected end of command  in %s on line %d
string(66) "Dynamic SQL Error SQL error code = -104 Unexpected end of command "
bool(false)