mirror of
https://github.com/php/php-src.git
synced 2024-12-05 07:46:06 +08:00
29 lines
710 B
PHP
29 lines
710 B
PHP
--TEST--
|
|
ibase_free_query(): Basic test
|
|
--SKIPIF--
|
|
<?php include("skipif.inc"); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
require("interbase.inc");
|
|
|
|
$x = ibase_connect($test_base);
|
|
|
|
$q =ibase_prepare($x, 'SELECT 1 FROM test1 WHERE i = ?');
|
|
$q =ibase_prepare($x, 'SELECT 1 FROM test1 WHERE i = ?');
|
|
$q = ibase_prepare($x, 'SELECT 1 FROM test1 WHERE i = ?');
|
|
|
|
var_dump(ibase_free_query($q));
|
|
var_dump(ibase_free_query($q));
|
|
var_dump(ibase_free_query($x));
|
|
|
|
?>
|
|
--EXPECTF--
|
|
bool(true)
|
|
|
|
Warning: ibase_free_query(): supplied resource is not a valid Firebird/InterBase query resource in %s on line %d
|
|
bool(false)
|
|
|
|
Warning: ibase_free_query(): supplied resource is not a valid Firebird/InterBase query resource in %s on line %d
|
|
bool(false)
|