1--TEST--
2ibase_free_query(): 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
12$q =ibase_prepare($x, 'SELECT 1 FROM test1 WHERE i = ?');
13$q =ibase_prepare($x, 'SELECT 1 FROM test1 WHERE i = ?');
14$q = ibase_prepare($x, 'SELECT 1 FROM test1 WHERE i = ?');
15
16var_dump(ibase_free_query($q));
17var_dump(ibase_free_query($q));
18var_dump(ibase_free_query($x));
19
20?>
21--EXPECTF--
22bool(true)
23
24Warning: ibase_free_query(): 11 is not a valid Firebird/InterBase query resource in %s on line %d
25bool(false)
26
27Warning: ibase_free_query(): supplied resource is not a valid Firebird/InterBase query resource in %s on line %d
28bool(false)
29