Annotation of embedaddon/php/ext/interbase/tests/ibase_free_query_001.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: ibase_free_query(): Basic test
! 3: --SKIPIF--
! 4: <?php include("skipif.inc"); ?>
! 5: --FILE--
! 6: <?php
! 7:
! 8: require("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:
! 16: var_dump(ibase_free_query($q));
! 17: var_dump(ibase_free_query($q));
! 18: var_dump(ibase_free_query($x));
! 19:
! 20: ?>
! 21: --EXPECTF--
! 22: bool(true)
! 23:
! 24: Warning: ibase_free_query(): 11 is not a valid Firebird/InterBase query resource in %s on line %d
! 25: bool(false)
! 26:
! 27: Warning: ibase_free_query(): supplied resource is not a valid Firebird/InterBase query resource in %s on line %d
! 28: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>