1--TEST--
2Error during closeCursor() of multi query
3--SKIPIF--
4<?php
5require_once(__DIR__ . DIRECTORY_SEPARATOR . 'skipif.inc');
6require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
7MySQLPDOTest::skip();
8?>
9--FILE--
10<?php
11require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
12$db = MySQLPDOTest::factory();
13
14$stmt = $db->query('SELECT 1; SELECT x FROM does_not_exist');
15var_dump($stmt->fetchAll());
16var_dump($stmt->closeCursor());
17?>
18--EXPECTF--
19array(1) {
20  [0]=>
21  array(2) {
22    [1]=>
23    string(1) "1"
24    [0]=>
25    string(1) "1"
26  }
27}
28
29Warning: PDOStatement::closeCursor(): SQLSTATE[42S02]: Base table or view not found: 1146 Table '%s.does_not_exist' doesn't exist in %s on line %d
30bool(false)
31