1--TEST--
2ibase_drop_db(): Basic test
3--SKIPIF--
4<?php include("skipif.inc"); ?>
5--FILE--
6<?php
7
8require("interbase.inc");
9
10unlink($file = tempnam('/tmp',"php_ibase_test"));
11
12
13$db = ibase_query(IBASE_CREATE,
14		sprintf("CREATE SCHEMA '%s' USER '%s' PASSWORD '%s' DEFAULT CHARACTER SET %s",$file,
15		$user, $password, ($charset = ini_get('ibase.default_charset')) ? $charset : 'NONE'));
16
17var_dump($db);
18var_dump(ibase_drop_db($db));
19var_dump(ibase_drop_db(1));
20var_dump(ibase_drop_db(NULL));
21
22?>
23--EXPECTF--
24resource(%d) of type (Firebird/InterBase link)
25bool(true)
26
27Warning: ibase_drop_db() expects parameter 1 to be resource, int given in %s on line %d
28NULL
29
30Warning: ibase_drop_db() expects parameter 1 to be resource, null given in %s on line %d
31NULL
32