Bug #16065 Updated: var_dump() infinite loop. Problem occured after today's patch(np w/ 4.1.2)
| From: | wez@php.net | Date: | Thu, 14 Mar 2002 15:34:35 +0000 |
| Subject: | Bug #16065 Updated: var_dump() infinite loop. Problem occured after today's patch(np w/ 4.1.2) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-2498@lists.php.net to get a copy of this message | ||
ID: 16065
Updated by: wez@php.net
Reported By: ahristov@icygen.com
-Status: Open
+Status: Closed
Bug Type: Arrays related
Operating System: RH 7.1
PHP Version: 4.0CVS-2002-03-14
New Comment:
This bug has been fixed in CVS.
Previous Comments:
------------------------------------------------------------------------
[2002-03-14 09:26:22] ahristov@icygen.com
<?php
//ob_start();
$a=array();
$a[]=&$a;
array_pop($a);
var_dump($GLOBALS);
//ob_end_flush();
?>
This piece of code causes infinite loop.
If the commments are removed than this little scripts starts to eat
memory too fast. 100MB for 15secs. When the physical RAM was not
available started to eat from the swap.
If var_export() is used no problems(with the CVS).
With 4.1.2 only causes Fatal Error - too deep recursion. Proably this
has something with Yasuo's patch that tried force var_dump() to work
like print_r() - showing recursion not just crashing.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16065&edit=1