1--TEST--
2ibase_errmsg(): Basic test
3--SKIPIF--
4<?php include("skipif.inc"); ?>
5--FILE--
6<?php
7
8require("interbase.inc");
9
10$x = ibase_connect($test_base);
11
12ibase_query('SELECT Foobar');
13var_dump(ibase_errmsg());
14
15ibase_close($x);
16var_dump(ibase_errmsg());
17
18?>
19--EXPECTF--
20Warning: ibase_query(): Dynamic SQL Error SQL error code = -104 %s on line %d
21string(%d) "Dynamic SQL Error SQL error code = -104 %s"
22bool(false)
23