mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
dd8de1e726
* Unserialize: Migrate "Unexpected end of serialized data" to E_WARNING * Unserialize: Migrate "Error at offset %d of %d bytes" to E_WARNING * Unserialize: Migrate "%s is returned from __sleep() multiple times" to E_WARNING * Add NEWS for “Promote unserialize() notices to warning”
19 lines
314 B
PHP
19 lines
314 B
PHP
--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
|
|
|
|
Warning: unserialize(): Error at offset 14 of 14 bytes in %s on line %d
|
|
bool(false)
|