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