mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
24 lines
476 B
PHP
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
|