com php-src: test for bug #66762: ext/mysqli/tests/bug66762.phpt

From: Date: Thu, 27 Feb 2014 07:48:01 +0000
Subject: com php-src: test for bug #66762: ext/mysqli/tests/bug66762.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-76254@lists.php.net to get a copy of this message
Commit: 816a5d207270556aa5a9d74cdd8629d1b06cc350 Author: Remi Collet <remi@php.net> Thu, 27 Feb 2014 08:48:01 +0100 Parents: 9137acc7ecdf1542fe6fda5056a0273359682735 Branches: PHP-5.4 PHP-5.5 PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=816a5d207270556aa5a9d74cdd8629d1b06cc350 Log: test for bug #66762 Bugs: https://bugs.php.net/66762 Changed paths: A ext/mysqli/tests/bug66762.phpt Diff: diff --git a/ext/mysqli/tests/bug66762.phpt b/ext/mysqli/tests/bug66762.phpt new file mode 100644 index 0000000..2b8a92c --- /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-- +<?php +require_once('skipif.inc'); +require_once('skipifconnectfailure.inc'); +?> +--FILE-- +<?php + require_once("connect.inc"); + + $mysqli = new mysqli($host, $user, $passwd, $db); + + $read_stmt = $mysqli->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

« previous php.cvs (#76254) next »