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