--TEST-- WeakReference serials --FILE-- getMessage()); } $wrs = 'O:13:"WeakReference":0:{}'; try { var_dump(unserialize($wrs)); } catch (Exception $ex) { var_dump($ex->getMessage()); } ?> --EXPECT-- string(47) "Serialization of 'WeakReference' is not allowed" string(49) "Unserialization of 'WeakReference' is not allowed"