--TEST-- PDO Common: PECL Bug #5217 (serialize/unserialze safety) --SKIPIF-- --FILE-- exec('CREATE TABLE test (id int NOT NULL PRIMARY KEY, val VARCHAR(10))'); } catch (Exception $e) { echo "Safely caught " . $e->getMessage() . "\n"; } echo "PHP Didn't crash!\n"; ?> --EXPECT-- Safely caught You cannot serialize or unserialize PDO instances PHP Didn't crash!