#30471 [Opn->Asn]: var_export: Nesting level too deep - recursive dependency?
ID: 30471
Updated by: derick@php.net
Reported By: none at example dot com
-Status: Open
+Status: Assigned
Bug Type: PHP options/info functions
Operating System: Linux
PHP Version: 5.0.2
-Assigned To:
+Assigned To: derick
Previous Comments:
------------------------------------------------------------------------
[2004-10-18 17:33:05] none at example dot com
Description:
------------
doing var_export( $GLOBALS, true ) there is an error
like in older versions of php4:
Nesting level too deep - recursive dependency?
Of course it is easy to do a workaround, but maybe it
would be nice to fix it. Theres a lot of discussion
araound this bug in some communities for older php
versions. Maybe it is me being in error or maybe this is
just a feature and not a bug? In this case sorry for
disturbing...
Thanks a lot for all your work!
Reproduce code:
---------------
<?php
$outText = var_export( $GLOBALS, true );
?>
Expected result:
----------------
I would expect to get var_export in $outText
Actual result:
--------------
array ( 'GLOBALS' => array ( 'GLOBALS' => array (
'GLOBALS' => array (
Fatal error: Nesting level too deep - recursive
dependency?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30471&edit=1
Thread (9 messages)