mirror of
https://github.com/php/php-src.git
synced 2024-10-18 23:12:35 +00:00
25 lines
599 B
PHP
25 lines
599 B
PHP
--TEST--
|
|
Test var_export() function : error conditions - recursive object
|
|
--FILE--
|
|
<?php
|
|
/* Prototype : mixed var_export(mixed var [, bool return])
|
|
* Description: Outputs or returns a string representation of a variable
|
|
* Source code: ext/standard/var.c
|
|
* Alias to functions:
|
|
*/
|
|
|
|
@$obj->p =& $obj;
|
|
var_export($obj, true);
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
stdClass::__set_state(array(
|
|
'p' =>
|
|
stdClass::__set_state(array(
|
|
'p' =>
|
|
stdClass::__set_state(array(
|
|
'p' =>
|
|
stdClass::__set_state(array(
|
|
|
|
Fatal error: Nesting level too deep - recursive dependency? in %s on line 9
|