From: MiRacLe.RPZ Date: Mon, 6 Jul 2015 20:31:57 +0000 (+0300) Subject: testcase fot bug #69757 X-Git-Tag: php-5.6.16RC1~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c8f064d7d2de2966407b4d048a35e0b5b4c78c5;p=php testcase fot bug #69757 --- 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