1--TEST--
2Enum unserialize const
3--FILE--
4<?php
5
6enum Foo {
7    case Bar;
8    const Baz = Foo::Bar;
9}
10
11var_dump(unserialize('E:7:"Foo:Baz";'));
12
13?>
14--EXPECTF--
15Warning: unserialize(): Foo::Baz is not an enum case in %s on line %d
16
17Warning: unserialize(): Error at offset 14 of 14 bytes in %s on line %d
18bool(false)
19