summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/050.phpt
blob: ee1c20322e263718206cd8ca6b48677c7ea016d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
non freed statement test
--SKIPIF--
<?php 
require_once('skipif.inc'); 
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php
	include "connect.inc";

	/************************
	 * non freed stamement
	 ************************/
	$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket);

	$stmt = mysqli_prepare($link, "SELECT CURRENT_USER()");
	mysqli_execute($stmt);

	mysqli_close($link);
	printf("Ok\n");
?>
--EXPECT--
Ok