php-src/ext/mysqli/tests/054.phpt

24 lines
476 B
PHP

--TEST--
free resultset after close
--SKIPIF--
<?php
require_once('skipif.inc');
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php
require_once("connect.inc");
/************************
* free resultset after close
************************/
$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
$result1 = mysqli_query($link, "SELECT CURRENT_USER()");
mysqli_close($link);
mysqli_free_result($result1);
printf("Ok\n");
?>
--EXPECT--
Ok