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-- 9Fatal error: Uncaught TypeError: Cannot assign string to property Exception::$trace of type array in %s:%d 10Stack trace: 11#0 %s(%d): unserialize('a:2:{i:0;O:9:"e...') 12#1 {main} 13 thrown in %s on line %d 14