summaryrefslogtreecommitdiff
path: root/Zend/tests/bug72581.phpt
blob: 775f6e360dbc6e0f035adfeb25fdefcd1bc33d6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--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}"