--TEST-- Uninitialized PDO objects --SKIPIF-- --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-- PDO object is not initialized, constructor was not called PDO object is uninitialized PDO object is uninitialized