summaryrefslogtreecommitdiff
path: root/Zend/tests/enum/unserialize-const.phpt
blob: 0731a68dccf59e86afb92a494edbb7655765a31e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Enum unserialize const
--FILE--
<?php

enum Foo {
    case Bar;
    const Baz = Foo::Bar;
}

var_dump(unserialize('E:7:"Foo:Baz";'));

?>
--EXPECTF--
Warning: unserialize(): Foo::Baz is not an enum case in %s on line %d

Notice: unserialize(): Error at offset 14 of 14 bytes in %s on line %d
bool(false)