summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests
diff options
context:
space:
mode:
authorRemi Collet <remi@php.net>2014-02-27 08:50:07 +0100
committerRemi Collet <remi@php.net>2014-02-27 08:50:07 +0100
commitfa01db3466348004dc6b98696f458851830f6431 (patch)
tree65fa67a93dac14c0829108215364b201f676d98b /ext/mysqli/tests
parent42a43d45317ac93c2ba934486879a0bc418bc34d (diff)
parentcb0e6124d4999c3fb64c3aab36dbcd5541e3008a (diff)
downloadphp-git-fa01db3466348004dc6b98696f458851830f6431.tar.gz
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5: NEWS NEWS test for bug #66762 Fixed Bug #66762 Segfault in mysqli_stmt::bind_result() when link closed
Diffstat (limited to 'ext/mysqli/tests')
-rw-r--r--ext/mysqli/tests/bug66762.phpt26
1 files changed, 26 insertions, 0 deletions
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--
+<?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