mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
9178503610
- Added ZEND_FETCH_RESOURCE2_NO_RETURN() (a version of ZEND_FETCH_RESOURCE2 but without the ZEND_VERIFY_RESOURCE() which contains RETURN_FALSE) - Fixed bug #46543 (ibase_trans() memory leaks when using wrong parameters)
29 lines
713 B
PHP
29 lines
713 B
PHP
--TEST--
|
|
Bug #46543 (ibase_trans() memory leaks when using wrong parameters)
|
|
--SKIPIF--
|
|
<?php include("skipif.inc"); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
require("interbase.inc");
|
|
|
|
@ibase_close();
|
|
|
|
ibase_trans(1);
|
|
ibase_trans();
|
|
ibase_trans('foo');
|
|
ibase_trans(fopen(__FILE__, 'r'));
|
|
|
|
$x = ibase_connect($test_base);
|
|
ibase_trans(1, 2, $x, $x, 3);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: ibase_trans(): no Firebird/InterBase link resource supplied in %s on line %d
|
|
|
|
Warning: ibase_trans(): no Firebird/InterBase link resource supplied in %s on line %d
|
|
|
|
Warning: ibase_trans(): no Firebird/InterBase link resource supplied in %s on line %d
|
|
|
|
Warning: ibase_trans(): supplied resource is not a valid Firebird/InterBase link resource in %s on line %d
|