summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/bug72433.phpt
blob: f311022500ecf04c172039bcf2cc752b4f889b10 (plain)
1
2
3
4
5
6
7
8
9
10
--TEST--
Bug #72433: Use After Free Vulnerability in PHP's GC algorithm and unserialize
--FILE--
<?php
$serialized_payload = 'a:3:{i:0;r:1;i:1;r:1;i:2;C:11:"ArrayObject":19:{x:i:0;r:1;;m:a:0:{}}}';
var_dump(unserialize($serialized_payload));
?>
--EXPECTF--
Notice: unserialize(): Error at offset %d of %d bytes in %sbug72433.php on line 3
bool(false)