xref: /PHP-5.5/ext/mysqli/tests/bug66762.phpt (revision 816a5d20)
1--TEST--
2Bug #66762 	mysqli@libmysql segfault in mysqli_stmt::bind_result() when link closed
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6require_once('skipifconnectfailure.inc');
7?>
8--FILE--
9<?php
10	require_once("connect.inc");
11
12	$mysqli = new mysqli($host, $user, $passwd, $db);
13
14	$read_stmt = $mysqli->prepare("SELECT 1");
15
16	var_dump($read_stmt->bind_result($data));
17
18	unset($mysqli);
19	var_dump($read_stmt->bind_result($data));
20
21?>
22done!
23--EXPECT--
24bool(true)
25bool(true)
26done!