mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00

* 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”
15 lines
274 B
PHP
15 lines
274 B
PHP
--TEST--
|
|
Enum unserialize non-enum
|
|
--FILE--
|
|
<?php
|
|
|
|
class Foo {}
|
|
|
|
var_dump(unserialize('E:7:"Foo:Bar";'));
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: unserialize(): Class 'Foo' is not an enum in %s on line %d
|
|
|
|
Warning: unserialize(): Error at offset 0 of 14 bytes in %s on line %d
|
|
bool(false)
|