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