blob: 86cce32df4e3a2e222e659c97e7e0a36ac1893f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--TEST--
Enum unserialize with missing colon
--FILE--
<?php
enum Foo {
case Bar;
}
var_dump(unserialize('E:6:"FooBar";'));
?>
--EXPECTF--
Warning: unserialize(): Invalid enum name 'FooBar' (missing colon) in %s on line %d
Notice: unserialize(): Error at offset 0 of 13 bytes in %s on line %d
bool(false)
|