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

enum Foo {
    case Bar;
}

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

?>
--EXPECTF--
Warning: unserialize(): Undefined constant Foo::Baz in %s on line %d

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