diff options
Diffstat (limited to 'Zend/tests/bug73350.phpt')
-rw-r--r-- | Zend/tests/bug73350.phpt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Zend/tests/bug73350.phpt b/Zend/tests/bug73350.phpt new file mode 100644 index 0000000000..7505884efb --- /dev/null +++ b/Zend/tests/bug73350.phpt @@ -0,0 +1,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, +)) |