summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug70068.phpt
blob: 96b2fa808f899836c14f0f710ca2fd60b7a795d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Bug #70068 (Dangling pointer in the unserialization of ArrayObject items)
--FILE--
<?php
try {
$a = unserialize('a:3:{i:0;C:11:"ArrayObject":20:{x:i:0;r:3;;m:a:0:{};}i:1;d:11;i:2;S:31:"AAAAAAAABBBBCCCC\01\00\00\00\04\00\00\00\00\00\00\00\00\00\00";}');
} catch(Exception $e) {
	print $e->getMessage()."\n";
}
?>
OK
--EXPECT--
Error at offset 10 of 20 bytes
OK