--TEST-- PDO Common: Bug #36428 (Incorrect error message for PDO::fetchAll()) --SKIPIF-- --FILE-- exec("CREATE TABLE test (a VARCHAR(10))"); $db->exec("INSERT INTO test (a) VALUES ('xyz')"); $res = $db->query("SELECT a FROM test"); var_dump($res->fetchAll(PDO::FETCH_CLASS|PDO::FETCH_PROPS_LATE, 'SimpleXMLElement', array(''))); ?> --EXPECTF-- array(1) { [0]=> object(SimpleXMLElement)#%d (1) { ["a"]=> string(3) "xyz" } }