1--TEST--
2Hash: Context serialization
3--FILE--
4<?php
5
6$h = hash_init('md5');
7try {
8  var_dump(serialize($h));
9} catch (Exception $e) {
10  echo "Exception: {$e->getMessage()}\n";
11}
12--EXPECT--
13Exception: Serialization of 'HashContext' is not allowed
14