1--TEST--
2Serialize a context
3--SKIPIF--
4<?php if (!extension_loaded('hash')) echo 'skip';
5--FILE--
6<?php
7
8$h = hash_init('md5');
9try {
10  var_dump(serialize($h));
11} catch (Exception $e) {
12  echo "Exception: {$e->getMessage()}\n";
13}
14--EXPECTF--
15Exception: Serialization of 'HashContext' is not allowed
16