From: Remi Collet Date: Thu, 27 Feb 2014 07:48:01 +0000 (+0100) Subject: test for bug #66762 X-Git-Tag: php-5.4.27RC1~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=816a5d207270556aa5a9d74cdd8629d1b06cc350;p=php test for bug #66762 --- diff --git a/ext/mysqli/tests/bug66762.phpt b/ext/mysqli/tests/bug66762.phpt new file mode 100644 index 0000000000..2b8a92c7fd --- /dev/null +++ b/ext/mysqli/tests/bug66762.phpt @@ -0,0 +1,26 @@ +--TEST-- +Bug #66762 mysqli@libmysql segfault in mysqli_stmt::bind_result() when link closed +--SKIPIF-- + +--FILE-- +prepare("SELECT 1"); + + var_dump($read_stmt->bind_result($data)); + + unset($mysqli); + var_dump($read_stmt->bind_result($data)); + +?> +done! +--EXPECT-- +bool(true) +bool(true) +done! \ No newline at end of file