mirror of
https://github.com/php/php-src.git
synced 2026-04-30 03:33:17 +02:00
test for bug #25378
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
--TEST--
|
||||
Bug #25378 (unserialize() crashes with invalid data)
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump(unserialize("s:-1:\"\";"));
|
||||
?>
|
||||
--EXPECTF--
|
||||
Notice: unserialize(): Error at offset 0 of 8 bytes in %s on line %d
|
||||
bool(false)
|
||||
Reference in New Issue
Block a user