--TEST-- Bug #74376 (Invalid free of persistent results on error/connection loss) --EXTENSIONS-- pdo_mysql --SKIPIF-- --FILE-- query("SELECT (SELECT 1 UNION SELECT 2)"); print "ok"; ?> --EXPECTF-- Warning: PDO::query(): SQLSTATE[21000]: Cardinality violation: 1242 Subquery returns more than 1 row in %s on line %d ok