summaryrefslogtreecommitdiff
path: root/ext/standard/tests/serialize/bug74101.phpt
blob: a414060f5c4bb14dd2be55b4969307ceffa433c9 (plain)
1
2
3
4
5
6
7
8
9
10
--TEST--
Bug #74101: Unserialize Heap Use-After-Free (READ: 1) in zval_get_type
--FILE--
<?php
$s = 'O:9:"Exception":799999999999999999999999999997:0i:0;a:0:{}i:2;i:0;i:0;R:2;';
var_dump(unserialize($s));
?>
--EXPECTF--
Notice: unserialize(): Error at offset 48 of 74 bytes in %s on line %d
bool(false)