mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
27 lines
527 B
PHP
27 lines
527 B
PHP
--TEST--
|
|
Test var_export() function : error conditions - recursive array
|
|
--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:
|
|
*/
|
|
|
|
$a[] =& $a;
|
|
var_export($a, true);
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
array (
|
|
0 =>
|
|
array (
|
|
0 =>
|
|
array (
|
|
0 =>
|
|
array (
|
|
0 =>
|
|
array (
|
|
|
|
Fatal error: Nesting level too deep - recursive dependency? in %s on line 9
|