From 4c8f064d7d2de2966407b4d048a35e0b5b4c78c5 Mon Sep 17 00:00:00 2001 From: "MiRacLe.RPZ" Date: Mon, 6 Jul 2015 23:31:57 +0300 Subject: [PATCH] testcase fot bug #69757 --- ext/pdo_dblib/tests/bug_69757.phpt | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 ext/pdo_dblib/tests/bug_69757.phpt diff --git a/ext/pdo_dblib/tests/bug_69757.phpt b/ext/pdo_dblib/tests/bug_69757.phpt new file mode 100644 index 0000000000..6c4aee0b6d --- /dev/null +++ b/ext/pdo_dblib/tests/bug_69757.phpt @@ -0,0 +1,32 @@ +--TEST-- +PDO_DBLIB: Segmentation fault on pdo_dblib::nextRowset +--SKIPIF-- + +--FILE-- +query($sql); +$resultset1 = $stmt->fetchAll(PDO::FETCH_ASSOC); +if (true !== $stmt->nextRowset()) { + die('expect TRUE on nextRowset'); +} +$resultset2 = $stmt->fetchAll(PDO::FETCH_ASSOC); +if (false !== $stmt->nextRowset()) { + die('expect FALSE on nextRowset'); +} +$stmt->closeCursor(); + +echo "OK\n"; +?> +--EXPECT-- +OK -- 2.49.0