--- /dev/null
- object(Exception)#%d (5) {
+--TEST--
+Bug #70963 (Unserialize shows UNKNOW in result)
+--FILE--
+<?php
+var_dump(unserialize('a:2:{i:0;O:9:"exception":1:{s:16:"'."\0".'Exception'."\0".'trace";s:4:"test";}i:1;R:3;}'));
+var_dump(unserialize('a:2:{i:0;O:9:"exception":1:{s:16:"'."\0".'Exception'."\0".'trace";s:4:"test";}i:1;r:3;}'));
+?>
+--EXPECTF--
+array(1) {
+ [0]=>
- int(%d)
++ object(Exception)#%d (6) {
+ ["message":protected]=>
+ string(0) ""
+ ["string":"Exception":private]=>
+ string(0) ""
+ ["code":protected]=>
+ int(0)
+ ["file":protected]=>
+ string(%d) "%s"
+ ["line":protected]=>
- object(Exception)#%d (5) {
++ int(2)
++ ["previous":"Exception":private]=>
++ NULL
+ }
+}
+array(1) {
+ [0]=>
- int(%d)
++ object(Exception)#%d (6) {
+ ["message":protected]=>
+ string(0) ""
+ ["string":"Exception":private]=>
+ string(0) ""
+ ["code":protected]=>
+ int(0)
+ ["file":protected]=>
+ string(%d) "%s"
+ ["line":protected]=>
++ int(3)
++ ["previous":"Exception":private]=>
++ NULL
+ }
+}