mirror of
https://github.com/php/php-src.git
synced 2024-12-11 19:04:38 +08:00
18 lines
293 B
Plaintext
18 lines
293 B
Plaintext
|
--TEST--
|
||
|
Bug #72581 (previous property undefined in Exception after deserialization)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
$e = new Exception('aaa', 200);
|
||
|
|
||
|
$a = serialize($e);
|
||
|
|
||
|
$b = unserialize($a);
|
||
|
|
||
|
var_dump($b->__toString());
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
string(%s) "Exception: aaa in %sbug72581.php:%d
|
||
|
Stack trace:
|
||
|
#0 {main}"
|