Annotation of embedaddon/php/ext/interbase/tests/bug46543.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #46543 (ibase_trans() memory leaks when using wrong parameters)
3: --SKIPIF--
4: <?php include("skipif.inc"); ?>
5: --FILE--
6: <?php
7:
8: require("interbase.inc");
9:
10: @ibase_close();
11:
12: ibase_trans(1);
13: ibase_trans();
14: ibase_trans('foo');
15: ibase_trans(fopen(__FILE__, 'r'));
16:
17: $x = ibase_connect($test_base);
18: ibase_trans(1, 2, $x, $x, 3);
19:
20: ?>
21: --EXPECTF--
22: Warning: ibase_trans(): no Firebird/InterBase link resource supplied in %s on line %d
23:
24: Warning: ibase_trans(): no Firebird/InterBase link resource supplied in %s on line %d
25:
26: Warning: ibase_trans(): no Firebird/InterBase link resource supplied in %s on line %d
27:
28: Warning: ibase_trans(): supplied resource is not a valid Firebird/InterBase link resource in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>