xref: /PHP-5.6/ext/spl/tests/bug70068.phpt (revision 33d0ef0f)
1--TEST--
2Bug #70068 (Dangling pointer in the unserialization of ArrayObject items)
3--FILE--
4<?php
5try {
6$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";}');
7} catch(Exception $e) {
8	print $e->getMessage()."\n";
9}
10?>
11OK
12--EXPECT--
13Error at offset 10 of 20 bytes
14OK