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(): no Firebird/InterBase link resource supplied in %s on line %d 23 24Warning: ibase_trans(): no Firebird/InterBase link resource supplied in %s on line %d 25 26Warning: ibase_trans(): no Firebird/InterBase link resource supplied in %s on line %d 27 28Warning: ibase_trans(): supplied resource is not a valid Firebird/InterBase link resource in %s on line %d 29