1--TEST--
2Bug #70963 (Unserialize shows UNKNOW in result)
3--FILE--
4<?php
5var_dump(unserialize('a:2:{i:0;O:9:"exception":1:{s:16:"'."\0".'Exception'."\0".'trace";s:4:"test";}i:1;R:3;}'));
6var_dump(unserialize('a:2:{i:0;O:9:"exception":1:{s:16:"'."\0".'Exception'."\0".'trace";s:4:"test";}i:1;r:3;}'));
7?>
8--EXPECTF--
9array(2) {
10  [0]=>
11  object(Exception)#%d (6) {
12    ["message":protected]=>
13    string(0) ""
14    ["string":"Exception":private]=>
15    string(0) ""
16    ["code":protected]=>
17    int(0)
18    ["file":protected]=>
19    string(%d) "%s"
20    ["line":protected]=>
21    int(2)
22    ["previous":"Exception":private]=>
23    NULL
24  }
25  [1]=>
26  string(4) "test"
27}
28
29Notice: unserialize(): Error at offset %d of %d bytes in %sbug70963.php on line 3
30bool(false)
31