--TEST-- Uninitialized PDO objects --EXTENSIONS-- pdo --FILE-- query("foo"); } catch (Error $e) { echo $e->getMessage(), "\n"; } $stmt = new MyPDOStatement; try { $stmt->fetch(); } catch (Error $e) { echo $e->getMessage(), "\n"; } $stmt = new MyPDOStatement; try { foreach ($stmt as $row) {} } catch (Error $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- MyPDO object is uninitialized MyPDOStatement object is uninitialized MyPDOStatement object is uninitialized