1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 14:01:01 +02:00
Files
archived-php-src/ext/standard/tests/serialize/bug25378.phpt
2003-09-03 16:40:52 +00:00

10 lines
211 B
PHP

--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)