summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/052.phpt
blob: 4ae9b12c503443ceaded3e14f593c2dedee17c95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
call statement after close
--FILE--
<?php
	include "connect.inc";
	
	/************************
	 * statement call  after close 
	 ************************/
	$link = mysqli_connect("localhost", $user, $passwd);

	$stmt2 = mysqli_prepare($link, "SELECT CURRENT_USER()");

	mysqli_close($link);
	@mysqli_execute($stmt2);
	@mysqli_stmt_close($stmt2);
	printf("Ok\n");
?>
--EXPECT--
Ok