1--TEST-- 2PDO_DBLIB bug #68957 PDO::query doesn't support several queries 3--EXTENSIONS-- 4pdo_dblib 5--SKIPIF-- 6<?php 7require __DIR__ . '/config.inc'; 8getDbConnection(); 9?> 10--FILE-- 11<?php 12require __DIR__ . '/config.inc'; 13 14$db = getDbConnection(); 15 16$query = "declare @myInt int = 1; select @myInt;"; 17$stmt = $db->query($query); 18$stmt->nextRowset(); // Added line 19$rows = $stmt->fetchAll(); 20print_r($rows); 21 22?> 23--EXPECT-- 24Array 25( 26 [0] => Array 27 ( 28 [computed] => 1 29 [0] => 1 30 ) 31 32) 33