summaryrefslogtreecommitdiff
path: root/Zend/tests/bug73350.phpt
blob: 7505884efbcdd53c3b42e471f7b0a988aec825e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--TEST--
Bug #73350 (Exception::__toString() cause circular references)
--FILE--
<?php
$e = new Exception();

// This line cause problem :(
// Comment it to see the difference.
(string) $e;

// This line show the clue (PHP Warning: ...).
var_export($e);
?>
--EXPECTF--
Exception::__set_state(array(
   'message' => '',
   'string' => 'Exception in %sbug73350.php:%d
Stack trace:
#0 {main}',
   'code' => 0,
   'file' => '%sbug73350.php',
   'line' => %d,
   'trace' => 
  array (
  ),
   'previous' => NULL,
))