mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
28 lines
511 B
PHP
28 lines
511 B
PHP
--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,
|
|
))
|